I am trying to create a batch file to create a network folder based on computer name and then copy the desktop, My Documents, Favorites from each profile to that share. So destination should be something like this:
\\server\share\computername\profile name\Mydocuments, etc.
I can create the computername dir. but nothing copies. I have tried this....
@echo off md \\servername\sharename\profile backups\%computername% cd C:\Documents and Settings xCopy "\%%\Desktop" \\servername\sharename\profile backups\%computername% "%computername%\%%\*.*"
I have tried a few different methods but can never get them to copy to the share.. it needs to read the variable computername so i dont have to manually type it. Please help