evildragon
Veteran Member
I can't seem to find how to do this.. Tried searching but got nowhere.
I have all of my autoexec.bat commands go to my D: drive, as my D: drive is where everything is.
Though, sometimes I may not want my D: drive on (it's an external), and instead of my computer booting saying a crap load of Bad command or file names, and Invalid Directory, I want autoexec.bat to first check for the presense of the D: drive.
If the d: drive is there, then it can go on, but if it's not there, I want it to just end auto exec immediately.
EDIT: I tried for this one, but it seems to be for if the drive already has a letter, but no disk.. Mine either has a letter or not.
http://snippets.dzone.com/posts/show/4141
I have all of my autoexec.bat commands go to my D: drive, as my D: drive is where everything is.
Though, sometimes I may not want my D: drive on (it's an external), and instead of my computer booting saying a crap load of Bad command or file names, and Invalid Directory, I want autoexec.bat to first check for the presense of the D: drive.
If the d: drive is there, then it can go on, but if it's not there, I want it to just end auto exec immediately.
EDIT: I tried for this one, but it seems to be for if the drive already has a letter, but no disk.. Mine either has a letter or not.
http://snippets.dzone.com/posts/show/4141
Last edited: