Server-side batch file copied locally and running locally.
I have a script that looks something like this, but recieve network location unavailable whenever I run it, and it is probably a SYNTAX issue, but I can't seem to figure it out.
::Copies JAVA remove .bat file and VB script to local HDD.
START /WAIT xcopy \\serverlocation\folder\folder2\JAVA_FIX\*.* "C:\JAVA_FIX\" /S /I /H /Q /Y
::Pause to ensure copy completion.
ping 127.0.0.1 -n 10 > nul
**********Where I have the "//%COMPUTERNAME%\" is where the issue seems to be coming up, and I can't seem to figure it out :( Please any help would be greatly appreciated.
Community Chosen Answer
Is your script running as the SYSTEM user? If so, it won't have the ability to grab anything from your \\serverlocation share because it is not a network user. Try running it as the logged on user.