Jump to content

what's the Vista equivalent for setting %cdrom%?


#rootworm

Recommended Posts


Replace "WIN51" with "sources\lang.ini" without the "":

for %%i in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do if exist %%i:\sources\lang.ini set CDROM=%%i:

Background:

The command goes through all drives - starting with C - and checks the root for the file after i:\. The file you let it look for must be one which just exist on the install DVD/CD to map the right drive. Once it has found the file, it will set CDROM to the drive where the file was found.

Martin

Edited by FireGeier
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...