After booting a DOS boot disk made from a USB flash drive into MS-DOS7.1, on some machines its drive letter is “A:”, while on other machines its drive letter is “C:”.
In the batch file autoexec.bat on the USB flash drive, when the drive letter of the USB flash drive is “A:”, program A needs to be executed; when the drive letter of the USB flash drive is “C:”, program C needs to be executed.
How can I get the drive letter of the USB flash drive in the DOS batch file autoexec.bat to make this work?
Thanks in advance!
Solved using the method introduced in post #4.
Thanks again for the answers from the helpful members!
[ Last edited by chenqiguang on 2006-12-27 at 10:28 PM ]
In the batch file autoexec.bat on the USB flash drive, when the drive letter of the USB flash drive is “A:”, program A needs to be executed; when the drive letter of the USB flash drive is “C:”, program C needs to be executed.
How can I get the drive letter of the USB flash drive in the DOS batch file autoexec.bat to make this work?
Thanks in advance!
Solved using the method introduced in post #4.
Thanks again for the answers from the helpful members!
[ Last edited by chenqiguang on 2006-12-27 at 10:28 PM ]
