scrooloose Posted April 6, 2007 Posted April 6, 2007 Finding out which drive has the install files?Try this: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) DO IF EXIST "%%i:%TAGFILE%" (SET CDDRIVE=%%i:& goto DONECD):DONECDEarly in the build, it'll save a coupla nanoseconds.... late in the build, it will save me having to click OK btn 4 times 'cos I have camera card readers..... pls do it 'cos it costs you nothin' and can save me timeBashrat: I love ur work. Pls do this in Presetup.CMD (sure ya tried it before - look at the spacing - mine works)
kof94 Posted April 6, 2007 Posted April 6, 2007 No offense but I think you need to be posting this over at the DriverPacks.net forums .
AlBundy33 Posted May 3, 2007 Posted May 3, 2007 You can use this code instead:SET CDDRIVE=%~d0:DONECDIf the script is on the cd it gives you your cd-drive-letter.You can also get a path relative to the script-path.::set a path relative to the scriptSET DIR=%~dp0..\Anwendungen::create the absolute pathPUSHD "%DIR%"SET DIR=%CD%POPD::output absolute pathECHO %DIR%GreetingsAl
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