I need some help creating a batch file that will do the following, I'm not sure what syntax I should be using.
The idea is to copy a folder and it's contents from a variable network location to another network location. What I would like is to be prompted to enter the computer name and then have it copy the stuff I need to the network location.
My flawed logic goes something like this:
1) Run batch file
2) Prompt user for computer hostname
3) Use hostname as a variable when running next command which copies the contents to a fixed network location
4) Fin
EDIT: on second thought it's probably easier to just say what I need done instead of being so vague so here goes: We're upgrading to Win7 and I need to copy the Favorites folder from the users old XP PC's to their home folders on the network. So there's permissions involved, UNC paths and stuff like that so it would be great to run a batch file which will prompt me to enter in the users old XP hostname, copy the Favorites folder and paste it into their home folder on the network.