I am looking for a quick way to copy data from one location to multiple user profile locations on the server share. The only change in the destination path is the username.
I want to target specific users, and those user ID are in a text file.
Can I loop though this list replacing the username in the path and make the copy?
I can do this the long way either manual copy, or create hundreds of lines, and changing the username for each copy using the below command
XCOPY C:\Shortcuts\* \\Server\Share\%USERNAME%\Profile\Favorites\Shortcuts /s /I
Many thanks