Use set command with p parameter. It will look like this :
set /p Variablename=
It will stop , you can enter the drive letter then press enter. Now the value of
Variablename will be what you typed.
You can type anything after the "=" sign, it will echo that, it will not affect the
variable. Like:
set /p Variablename=Type the drive letter:
--
> Ayush [ Be ''?'' Happy ]
For any query, search >
www.Google.com
Want to know about a term >
http://en.wikipedia.org
Replied To :
-------------------------------------------------------------
"Anthony" <(E-Mail Removed)> wrote in message
news:9E4D6542-E75A-4293-91BC-(E-Mail Removed)...
: Hi all, I am trying to write a batch file to copy a folder to an external
: hard drive. I have got the batch file working correctly, but when I plug in
: the ext drive it is grabbing drive letter "g" all the time. I have set it
: grab drive "z" but does not always do this. I would like to have the batch
: file stop and ask what the drive letter is and then proceed using that drive
: letter...is this at all possible? I have found the choice command but I don't
: think that is available in WinXP...any help greatly appreciated. Cheers