Computer Hope

Microsoft => Microsoft DOS => Topic started by: zast on September 08, 2005, 03:32:28 AM

Title: Batch asking for drive letter,...
Post by: zast on September 08, 2005, 03:32:28 AM
Hi, hope someone can help me with this problem: which batch command must I use so the program asks for input (I want to type in the letter of the mapped drive) and uses it to copy files to the specified location - e.g.: I plug in an USB stick (drive is mapped and provided with a drive letter), run the batch file, give input about the drive letter, program uses the correct path.
Thanks for any help - zast
Title: Re: Batch asking for drive letter,...
Post by: Sidewinder on September 08, 2005, 05:22:59 AM
It would have been helpful had you mentioned your OS. In general, for Win9x machines, use choice. For NT machines, use set /p var=prompt. There are also 3rd party utilities (INPUT or ANSWER) that you might find on the Net.

Hope this helps. 8)
Title: Re: Batch asking for drive letter,...
Post by: zast on September 08, 2005, 07:59:23 AM
Sorry about the poor information - I'll try harder next time. But still I've managed  ;D
Thanx a lot - zast