Jump to content

autodetecting cdrom drive letter


Recommended Posts

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


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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...