G
Gab
Hello ,
I've got a problem with a little program whitcl copy a files to a remote
folder .
I'am using the System.Diagnostic. Process to copy a file from my local
machine to remote folder , but when I test this code it's doesn't work .
Process ProcessCMD2 = new Process();
ProcessCMD2.StartInfo.FileName = "CMD.exe";
ProcessCMD2.StartInfo.Arguments = "net use
\\192.168.7.6\WsAutomateMDX\test\" + "\r\n" + "@copy /B
C:\dev_Manudax\WsAutomateMDX\bin\Debug\x3Files\ETQ0903000TEST.zpl
\\192.168.7.6\WsAutomateMDX\test\ETQ0903000TEST.zpl 1>NUL: 2>NUL:"
ProcessCMD2.Start();
ProcessCMD2.Close();
But i put this command " net use \\192.168.7.6\WsAutomateMDX\test\" +
"\r\n" + "@copy /B
C:\dev_Manudax\WsAutomateMDX\bin\Debug\x3Files\ETQ0903000TEST.zpl
\\192.168.7.6\WsAutomateMDX\test\ETQ0903000TEST.zpl 1>NUL: 2>NUL:" in the
test.bat file ,It's working !
I have no exception thrown , I don't anderstand can you help me !
Thanks lot for your help .
Gab
I've got a problem with a little program whitcl copy a files to a remote
folder .
I'am using the System.Diagnostic. Process to copy a file from my local
machine to remote folder , but when I test this code it's doesn't work .
Process ProcessCMD2 = new Process();
ProcessCMD2.StartInfo.FileName = "CMD.exe";
ProcessCMD2.StartInfo.Arguments = "net use
\\192.168.7.6\WsAutomateMDX\test\" + "\r\n" + "@copy /B
C:\dev_Manudax\WsAutomateMDX\bin\Debug\x3Files\ETQ0903000TEST.zpl
\\192.168.7.6\WsAutomateMDX\test\ETQ0903000TEST.zpl 1>NUL: 2>NUL:"
ProcessCMD2.Start();
ProcessCMD2.Close();
But i put this command " net use \\192.168.7.6\WsAutomateMDX\test\" +
"\r\n" + "@copy /B
C:\dev_Manudax\WsAutomateMDX\bin\Debug\x3Files\ETQ0903000TEST.zpl
\\192.168.7.6\WsAutomateMDX\test\ETQ0903000TEST.zpl 1>NUL: 2>NUL:" in the
test.bat file ,It's working !
I have no exception thrown , I don't anderstand can you help me !
Thanks lot for your help .
Gab