I’m trying to execute xcopy.exe on a gateway event script using the following code:
cmd = [‘c:/windows/syswow64/xcopy.exe’, ‘\\l2-video-1\images’, ‘e:\images\’, ‘/S’, ‘/D’, ‘/C’, ‘/Y’]
The code executes fine using the console but doesn’t work at all when executed from within a gateway event (tag change) script. I’ve put additional code in to trap the procedure so I know that it is executing on the gateway. I’ve also turned UAC off. Any other ideas?