ner Posted May 15, 2006 Posted May 15, 2006 (edited) Hi All,I am trying to find a way of running the below Install.cmd file from the system drive, and not the CD. The Below install command is for installing Hotkey for Display Devices for a Toshiba Tecra M2.Any help would be very much apriciated. @ECHO OFFECHO.ECHO ***********************************************ECHO *** Installing 'Hotkey for Display Devices' ***ECHO ***********************************************ECHO.SET CD_Drive=undefinedFOR %%i IN (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:\tdevconex.exe" SET CD_Drive=%%i:IF (%CD_Drive%)==(undefined) GOTO CD_ERRORC:\WINDOWS\System32\rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 %CD_Drive%\Hotkey for Display Devices\English\Tfnf5Wxp.inf >nulIF ERRORLEVEL 1 GOTO FAILIF ERRORLEVEL 0 GOTO OK:FAILECHO.ECHO ***************************ECHO *** Installation failed ***ECHO ***************************ECHO.GOTO END:oKECHO.ECHO ******************************************ECHO *** Installation finished successfully ***ECHO ******************************************ECHO.GOTO END:CD_ERRORECHO.ECHO ***********************************************ECHO *** Could not determine CD-ROM drive letter ***ECHO ***********************************************ECHO.:ENDpause Edited May 15, 2006 by ner
IcemanND Posted May 15, 2006 Posted May 15, 2006 then delete this:SET CD_Drive=undefinedFOR %%i IN (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:\tdevconex.exe" SET CD_Drive=%%i:IF (%CD_Drive%)==(undefined) GOTO CD_ERRORand change the "%CD_Drive%\Hotkey for Display Devices\English\" to the full path on your hard drive.C:\WINDOWS\System32\rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 %CD_Drive%\Hotkey for Display Devices\English\Tfnf5Wxp.inf >nulfor example:C:\WINDOWS\System32\rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 %systemroot%\install\toshiba\Tfnf5Wxp.inf >nul
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