Hi,
I need to create a batch file which acts on user input and am not having any joy.
Basically, it need's to prompt for Drive letters to use, so it can then copy from the first paramenter (dl) to the second (bl)
The script i have done is below but not having much luck with it, am i going wrong somewhere?
@echo off
:GETINPUT
set /p dl=Drive letter of OS?:
set /p bl=Drive letter of backup location?:
copy "%dl%"\windows\csc\*.* "%bl%"\FilesCacheBackup\CSC
Batch File Help - Copy
Moderator: DosItHelp
Re: Batch File Help - Copy
You sure someone is going to enter in the COLON after the drive letter?
Don't put just your variables in quotes. Put the whole path in quotes.
Don't put just your variables in quotes. Put the whole path in quotes.