M
Mark
Hi all, I am trying to execute a batch file to copy over files from one
server to another. The batch file is using robocopy to copy over the files.
============
private void CopyFiles()
{// Use the process name space to copy over the files
System.Diagnostics.Process oProc = new System.Diagnostics.Process();
oProc.StartInfo.FileName ="c:\CopyFiles.bat" ;
oProc.Start();
}
============
When I run the above routine nothing gets copied and I get no error message
whatsoever.
When I manually run the batch file the copy works fine so it is not the
batch file.
Batch file is shown below..
robocopy c:\images \\remoteserver\c$\images /e
robocopy c:\documents \\remoteserver\c$\documents /e
I am assumming that it might be something to do with user permission
settings, ASPNET user has full rights on both the local machine as well as
the remote machine.
Any help appreciated.
Thanks in advance
Mark
server to another. The batch file is using robocopy to copy over the files.
============
private void CopyFiles()
{// Use the process name space to copy over the files
System.Diagnostics.Process oProc = new System.Diagnostics.Process();
oProc.StartInfo.FileName ="c:\CopyFiles.bat" ;
oProc.Start();
}
============
When I run the above routine nothing gets copied and I get no error message
whatsoever.
When I manually run the batch file the copy works fine so it is not the
batch file.
Batch file is shown below..
robocopy c:\images \\remoteserver\c$\images /e
robocopy c:\documents \\remoteserver\c$\documents /e
I am assumming that it might be something to do with user permission
settings, ASPNET user has full rights on both the local machine as well as
the remote machine.
Any help appreciated.
Thanks in advance
Mark