April 6, 200719 yr 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)
April 6, 200719 yr No offense but I think you need to be posting this over at the DriverPacks.net forums .
May 3, 200719 yr 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
Create an account or sign in to comment