Astalavista Posted February 18, 2005 Author Share Posted February 18, 2005 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=%%dREM Determine the WPI startup path. REM If WPI should run off the CD the replace %dp0 with %CDROM%\PathToWPIset 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:endok problem fixed using BB's code instead of hasi's. Interesting. Link to comment Share on other sites More sharing options...
hasi001 Posted February 18, 2005 Share Posted February 18, 2005 @AstaDo 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 comment Share on other sites More sharing options...
Martin Zugec Posted February 18, 2005 Share Posted February 18, 2005 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 askcdrom 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 comment Share on other sites More sharing options...
Astalavista Posted February 18, 2005 Author Share Posted February 18, 2005 hey Hasi thanks for the info.No i dont change my avatar everyday. i change it every few hours. LOL Link to comment Share on other sites More sharing options...
DavidC Posted March 4, 2005 Share Posted March 4, 2005 sorry wrong forum Link to comment Share on other sites More sharing options...
IcemanND Posted March 4, 2005 Share Posted March 4, 2005 Why not use DetectDrive run out of cmdlines.txt then you'll have any drive variable you designate available after the first reboot. Link to comment Share on other sites More sharing options...
dlevens Posted March 7, 2005 Share Posted March 7, 2005 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 askcdrom 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<{POST_SNAPBACK}>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 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