Copying a file using directory variables %folder%
I'm trying to run a batch file via the Scripting module that copies and overwrites a file. The line I'm using is...
start /wait xcopy \\server2\public\av\SignageServerSettings.xml %fwi%\SignageSettings\ /y
If I just run the batch file on the workstation, it works fine. But when I try to push it out via the KBox, it doesn't recognize the %fwi% variable and just copies to the root of the C:\ drive.
Community Chosen Answer
I am using an Online Shell Script and I tried selecting "Run as Local System" and "Run as User logged in to console" which did not work. Finally I ran it and provided the Domain admin credentials. This seemed to work. I also had to enclose the source and destination paths in " " incase there were any spaces in the path.