Jump to content

Help with Cmd File for installing..


Recommended Posts

Posted (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. :wacko:

@ECHO OFF

ECHO.

ECHO ***********************************************

ECHO *** Installing 'Hotkey for Display Devices' ***

ECHO ***********************************************

ECHO.

SET CD_Drive=undefined

FOR %%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_ERROR

C:\WINDOWS\System32\rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 %CD_Drive%\Hotkey for Display Devices\English\Tfnf5Wxp.inf >nul

IF ERRORLEVEL 1 GOTO FAIL

IF ERRORLEVEL 0 GOTO OK

:FAIL

ECHO.

ECHO ***************************

ECHO *** Installation failed ***

ECHO ***************************

ECHO.

GOTO END

:oK

ECHO.

ECHO ******************************************

ECHO *** Installation finished successfully ***

ECHO ******************************************

ECHO.

GOTO END

:CD_ERROR

ECHO.

ECHO ***********************************************

ECHO *** Could not determine CD-ROM drive letter ***

ECHO ***********************************************

ECHO.

:END

pause

Edited by ner

Posted

then delete this:

SET CD_Drive=undefined

FOR %%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_ERROR

and 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 >nul

for example:

C:\WINDOWS\System32\rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 %systemroot%\install\toshiba\Tfnf5Wxp.inf >nul

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...