kurt476 Posted January 23, 2005 Share Posted January 23, 2005 can some1 help me setup this wpi.cmd for the cd rom?@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=%~dp0echo WPI will run from %WPIPATH%REM Font installation - the easy wayfor /R %%i in ( *.ttf ) do ( echo Installing font %%~ni.ttf copy /Y "%%~fi" "%windir%\Fonts" > nul "%WPIPATH%\common\installfont.exe" "%windir%\Fonts\%%~ni.ttf" > nul)REM Hide this command window"%WPIPATH%\common\cmdow.exe" @ /HIDREM Special registry tweak neededregedit /S "%WPIPATH%\common\wpi.reg"REM Make WPI driectory the current directoryfor /F "delims=: tokens=1" %%i in ("%WPIPATH%") DO echo %%i:cd "%WPIPATH%"REM Start WPI and wait for its endstart /wait WPI.hta[/QUOTE] Link to comment Share on other sites More sharing options...
Astalavista Posted January 23, 2005 Share Posted January 23, 2005 double posting!u already have a topic at http://www.msfn.org/board/index.php?showtopic=37131for CDRom problems Link to comment Share on other sites More sharing options...
kurt476 Posted January 23, 2005 Author Share Posted January 23, 2005 that's not the same as this Link to comment Share on other sites More sharing options...
hasi001 Posted January 23, 2005 Share Posted January 23, 2005 replacefor /F "delims=: tokens=1" %%i in ("%WPIPATH%") DO echo %%i: with for /F "delims=: tokens=1" %%i in ("%WPIPATH%") DO %%i: see - the echo is gone. my failure. had to put it in for testing and forgot about it. sorry. Link to comment Share on other sites More sharing options...
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