If you're wanting to copy files, use the abovementioned File
object...ie File.Copy().
If you want to run system commands at a command prompt...
using System.Threading;
....
Process p = new Process();
p.StartInfo.WorkingDirectory = "c:\\";
p.StartInfo.Arguments = @"/K dir *.*";
p.StartInfo.FileName = @"cmd.exe";
p.Start();
...for instance, will open a command window, execute the command line
listing the files, and remain visible so you can see the results.
This is admittedly not a preferred method.
Hope this helps,
Joe
*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*