Coolsights2000 Posted May 12, 2005 Author Posted May 12, 2005 well, it looks like you want %WINPATH% to expand to whatever...and in that case, you shouldnt need the caret at all...and I mentioned in my post that if you DID NOT want it expanded, then it was wrong...thats all, but from the post above this, you do want it to expand to D:\install or whatever. So, it is correct the way you have it, tho you could get rid of the carets, I would assume.<{POST_SNAPBACK}>HuM this is where I found the carrot did M$ mess up But where they place the double ^ don't work,, if I put them both on the outside it does work,,,,To add a multivalued registry entry to HKLM\Software\MyCo with the options of ValueName: MRU, DataType: REG_MULTI_SZ, and ValueData: fax\0mail\0\0, type:REG ADD HKLM\Software\MyCo /v MRU /t REG_MULTI_SZ /d fax\0mail\0\0To add an expanded registry entry to HKLM\Software\MyCo with the options of ValueName: Path, DataType: REG_EXPAND_SZ, and ValueData: %systemroot%, type: REG ADD HKLM\Software\MyCo /v Path /t REG_EXPAND_SZ /d ^%systemroot^%http://www.microsoft.com/technet/prodtechnol/windowsserver2003/library/ServerHelp/820b0e5b-0371-404d-8a22-a255273d3289.mspx
erik_demon Posted May 12, 2005 Posted May 12, 2005 @TheeBeetsIs this possible to be run from Winnt.sifIt is possible, but not recommended.You need your computer to reboot before you can use the variable. Just use Coolsights2000 advise and execute the batch at T=12.could someone plz post a copy of what wpi.cmdmy wpi.cmd looks like this:@ECHO OFFcmdow @ /HIDECHO.ECHO Calling WPIECHO.start /wait %CDDRIVE%\Settings\config\wpi\WPI.HTAexitPlease note that I changed the name of my variable!! If you use Coolsights2000 example, change %CDDRIVE% to %XPCD% !!and perhaps even put on unattended website as it makes things a lot easierI agree
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