Jump to content

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


Recommended Posts

Posted

just wondering what the vista equivalent of this batch command would be:

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:\WIN51 set CDROM=%%i:


Posted (edited)

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

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