M Mark May 26, 2004 #1 does anyone know how to do a wildcard copy of several files from one directory to another in .net? thanks
does anyone know how to do a wildcard copy of several files from one directory to another in .net? thanks
L Lloyd Sheen May 26, 2004 #2 There is no auto way to do this. You must first get a list of files that correspond to your wildcard. Then you must copy each of the files individually. See references in MSDN for the following: File.Copy Method Directory.GetFiles Method Lloyd Sheen
There is no auto way to do this. You must first get a list of files that correspond to your wildcard. Then you must copy each of the files individually. See references in MSDN for the following: File.Copy Method Directory.GetFiles Method Lloyd Sheen
D Dino Chiesa [Microsoft] May 27, 2004 #3 Maybe not what you were thinking, but you could use System.Diagnostics.Process to launch a new process like "xcopy Foo*.doc f:\archive_dir" -Dino
Maybe not what you were thinking, but you could use System.Diagnostics.Process to launch a new process like "xcopy Foo*.doc f:\archive_dir" -Dino