Jump to content
MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. ×

cdrom script ErroR... what gives?


Recommended Posts

FOR %%d 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 %%d\win51 SET CDROM=%%d

REM Determine the WPI startup path.

REM If WPI should run off the CD the replace %dp0 with %CDROM%\PathToWPI

set WPIPATH=%CDROM%\WPI\

regedit /S "%WPIPATH%\common\wpi.reg"

for /F "delims=: tokens=1" %%d in ("%WPIPATH%") DO %%d:

cd "%WPIPATH%"

start /wait WPI.hta

:end

ok problem fixed using BB's code instead of hasi's. Interesting.

Link to post
Share on other sites

@Asta

Do you change your avatar every day ??

Now to your question:

The included .cmd file works for me in [GuiRunOnce]. And my WPI installation still sits in the $OEM$ folder. All the changes for running it from somewhere else were made for users, not for me.

I do not use any RunOnceEX.cmd.

So you're welcome to do some documentation, if you're working with RunOnceEX. I'd put it on the WPI site.

BTW: using 1 or 2 percent signs has nothing to do with from where you call wpi during installation. So for every installation it would be some sort of batch file and you'd always have to use 2 % signs in that file.

Link to post
Share on other sites

Well, I mean why using finding directory or file on cdrom and list through all cdrom lists if U can just use wmi class and ask

cdrom where mediumloaded=1 and mediumname=XP set cdrom=cdromdrive.

Using vbscript or wmic...

BTW I am big enemy of stars, avatart etc ;) Like simple text interface instead

Link to post
Share on other sites
  • 2 weeks later...
Well, I mean why using finding directory or file on cdrom and list through all cdrom lists if U can just use wmi class and ask

cdrom where mediumloaded=1 and mediumname=XP set cdrom=cdromdrive.

Using vbscript or wmic...

BTW I am big enemy of stars, avatart etc ;) Like simple text interface instead

Soulin,

Can you explain further how to do this using wmi? Do you have a script that is working that you can share? Seems like a better way to go.

Dennis

Link to post
Share on other sites

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...