bonedaddy Posted January 11, 2005 Share Posted January 11, 2005 Ok, is this going to work? I have wpi335 on the cd at software\wpi andwpi.cmd at $oem$\$1\install\wpi.cmd@ECHO OFFREMREM WPI startup something.REM REM Example, how to look for CDROM-drive. Must have a file called WIN51 in its root.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:echo Found CD-Rom as drive %CDROM%REM Determine the WPI startup path. REM If WPI should run off the CD the replace %dp0 with %CDROM%\PathToWPIset WPIPATH=%cdrom%\software\wpiecho WPI will run from %cdrom%\software\wpiREM Font installation - the easy wayfor /R %%i in ( *.ttf ) do ( echo Installing font %%~ni.ttf copy /Y "%%~fi" "%windir%\Fonts" > nul "%cdrom%\software\wpi\common\installfont.exe" "%windir%\Fonts\%%~ni.ttf" > nul)REM Hide this command windowREM "%WPIPATH%\common\cmdow.exe" @ /HIDREM Special registry tweak neededregedit /S "%CDROM%\software\wpi\common\wpi.reg"REM Make WPI driectory the current directoryfor /F "delims=: tokens=1" %%i in ("%cdrom%\software\wpi") DO echo %%i:cd "%cdrom%\software\wpi"REM Start WPI and wait for its endstart /wait WPI.htaREM call any cleanup code here, or after this script.exitthanks for lookin'BDEDITOh yes, does that _________next_________at the bottom stay there all the time? Link to comment Share on other sites More sharing options...
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
Already have an account? Sign in here.Sign In Now