I am trying to use a CMD command prompt to copy a file from one location to multiple at roughly the same time using one line of code. Is there a way to do this using COPY, XCOPY, etc.?
I haven't been able to get this work using this type of command:
COPY C:\test.txt C:\A1\ C:\A2\
It seems like this should work, but it gives an error that the syntaxes of the command is incorrect (copy) or invalid number of parameters (xcopy).
I would like to avoid a batch file because of the way this needs to be implemented.