#rootworm Posted October 13, 2006 Posted October 13, 2006 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:
FireGeier Posted October 13, 2006 Posted October 13, 2006 (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 October 13, 2006 by FireGeier
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now