G
Guest
Hi,
How would I copy the file 'test.txt' from C:\_A to C:\_B.
I need this through the System.Diagnostics.Process-Class and NOT the
IO.File-Class
p = New System.Diagnostics.Process()
p.StartInfo.FileName = "cmd.exe"
p.StartInfo.Arguments = "copy C:\_A\test.txt C:\_B > nul"
p.StartInfo.CreateNoWindow = True
p.StartInfo.UseShellExecute = False
p.StartInfo.RedirectStandardOutput = True
p.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden
p.Start()
This snippet doesn't work.
TIA,
Michael
How would I copy the file 'test.txt' from C:\_A to C:\_B.
I need this through the System.Diagnostics.Process-Class and NOT the
IO.File-Class
p = New System.Diagnostics.Process()
p.StartInfo.FileName = "cmd.exe"
p.StartInfo.Arguments = "copy C:\_A\test.txt C:\_B > nul"
p.StartInfo.CreateNoWindow = True
p.StartInfo.UseShellExecute = False
p.StartInfo.RedirectStandardOutput = True
p.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden
p.Start()
This snippet doesn't work.
TIA,
Michael