Jump to content

Run from cd


Recommended Posts

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 OFF
REM
REM WPI startup something.
REM

REM 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%\PathToWPI
set WPIPATH=%CDROM%\WPI\
echo WPI will run from %WPIPATH%

REM Hide this command window
"%WPIPATH%\common\cmdow.exe" @ /HID

REM Special registry tweak needed
regedit /S "%WPIPATH%\common\wpi.reg"

REM Make WPI driectory the current directory
for /F "delims=: tokens=1" %%i in ("%WPIPATH%") DO echo %%i:
cd "%CDROM%\WPI\"

REM Start WPI and wait for its end
start /wait WPI.hta

REM call any cleanup code here, or after this script.
exit

If i run the scrip it says: there is no drive in F:

look @ this screenshot for my configuaration

th_cba_naamloos.JPG

Link to comment
Share on other sites


Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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