ashfaq_t Posted August 11, 2003 Share Posted August 11, 2003 can someone guide me as to how to have my .bat file autodetect my cdrom drive letter.I am trying to put my additional programs which dont fit on my xp install cd onto another cdrom and want to install those programs from that cd automatically and unattended. I want my batch file from the first cd to automatically ask for another cdrom, find the programs on that cd and install them.Thank you for your help. Link to comment Share on other sites More sharing options...
seethru Posted August 11, 2003 Share Posted August 11, 2003 wish I knew, I'll do some looking around and see if I can find anything, but your best bet may be to just guess and hope that you're right. Link to comment Share on other sites More sharing options...
Sebbe Posted August 11, 2003 Share Posted August 11, 2003 A little workaround:Write a short vbs-script, which determines, what letter your cd-drive has.This script set it as an enviromental var e.g.set cdletter=F:and you're able to find your cd!Do you want have the code for that vbs ? Link to comment Share on other sites More sharing options...
Bachus Posted August 11, 2003 Share Posted August 11, 2003 I'll take it. Link to comment Share on other sites More sharing options...
ashfaq_t Posted August 12, 2003 Author Share Posted August 12, 2003 I would greatly appreciate it if you could give it to me.Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now