Hey guys,
I'm trying to copy a directory from one location to another using system.callSystem with the command xcopy. I've tested the string that I'm using as the parameter directly in the command prompt and it works, so I know that I'm feeding the function correctly. However, when I run it, nothing happens. Any ideas what could be going wrong? Is there something I'm missing?
here's the call:
system.callSystem('xcopy "' + sourceDir + '\\*.*" /e "' + targetDir + '"');
that string I'm feeding it is the equivalent of
xcopy "\\SOURCE_NETWORK\SOURCE_DIRECTORY\*.*" /e "\\TARGET_NETWORK\TARGET_DIRECTORY"