EliasXP Posted January 30, 2005 Share Posted January 30, 2005 Hellow,I would like to run wpi from my cd,1- Do i need to copy my wpi.cmd to my hard drive?2- what is wrong with my script:@ECHO OFFREMREM WPI startup something.REMREM Example, how to look for CDROM-drive. Must have a file called WIN51 in its root. ( i dont have that file , but i replaced it with boot.bin)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:\boot.bin 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%\WPI\echo WPI will run from %WPIPATH%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 "%CDROM%\WPI\"REM Start WPI and wait for its endstart /wait WPI.htaREM call any cleanup code here, or after this script.exitIf i run the scrip it says: there is no drive in F:look @ this screenshot for my configuaration Link to comment Share on other sites More sharing options...
keytotime Posted January 30, 2005 Share Posted January 30, 2005 Search. Also don't search for boot.bin 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:Try thisboot.bin is not a file on the cd. Link to comment Share on other sites More sharing options...
Astalavista Posted January 30, 2005 Share Posted January 30, 2005 pls use the searchhttp://www.msfn.org/board/index.php?showtopic=36303http://www.msfn.org/board/index.php?showtopic=35119http://www.msfn.org/board/index.php?showto...ndpost&p=249392http://www.msfn.org/board/index.php?showto...ndpost&p=246892http://www.msfn.org/board/index.php?showto...ndpost&p=257615 Link to comment Share on other sites More sharing options...
Recommended Posts