#rootworm Posted October 13, 2006 Share 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: Link to comment Share on other sites More sharing options...
FireGeier Posted October 13, 2006 Share 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 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