Copy files from client machines to network share using K1000 scripting
I am trying to get a pull a text file from each client computer for an audit. It seems fairly straight forward until I think you run into share permissions. I can easily get a file to the client but am having a hard time pulling a file. Here is the .bat file that I used:
COPY TICKET.TXT C:\SOIT
REN TICKET.TXT %COMPUTERNAME%.TXT
COPY *.TXT Z:\
** ticket.txt is move to another directory so not to modify the file that is in use.
** after it is moved then it is named
The bat file fails (does not complete but no message) on the copy *.txt z:\ using the K1000 scripting method.
It works when I run the .bat from the command line on the computer. Does anyone have an good ideas on how to pull a file to a network share?
Thanks for your help.
Thank you JordanNolan. The UNC path for the share was the answer.