Batch File To Request User Input

January 28, 2010 at 12:33:41
Specs: Windows Vista
I have a batch file that will backup user files from a desktop pc to an external hard drive. I want to add code to request user input to ask them what their external hard drive letter is and pass this input to replace the hard coded drive letter in the script. Here is a copy of the backup script:
Robocopy "%userprofile%\Desktop" "F:\%username%\Desktop" /E /R:0 /W:0 /LOG+:BACKUP.TXT
Robocopy "%userprofile%\Documents" "F:\%username%\Documents" /E /R:0 /W:0 /LOG+:BACKUP.TXT
Robocopy "%userprofile%\Favorites" "F:\%username%\Favorites" /E /R:0 /W:0 /LOG+:BACKUP.TXT

Can someone help me? -Thanks

See More: Batch File To Request User Input

Report •

January 28, 2010 at 13:05:58
See if the menu creation would help.

Playing to the angels
Les Paul (1915-2009)

Report •

February 1, 2010 at 14:27:45

Thanks for your response, very informative web page. I now have a point of reference to start experimenting a little more with that backup script.

Thanks Again

Report •

Related Solutions

Ask Question