Jump to content

cmdlines use %cdrom%?


Recommended Posts

Hi,

I am tryng to call my RegTweaks file (located at: XPCD\Tweaks\RegTweaks.reg) from my cmdlines.txt

Right now, my cmdlines.txt contains:

[COMMANDS]
"REGEDIT /S RegTweaks.reg"

how do I fix this so the file is called from the CD path (I dont want the file RegTweaks.reg to be in $OEM$)?

Link to comment
Share on other sites


[COMMANDS]
"REGEDIT /S ..\Tweaks\RegTweaks.reg"

This should do it.

i'm not exactly sure how this is working, but my cmdlines.txt is in XPCD\$OEM$

wouldn't "REGEDIT /S ..\Tweaks\RegTweaks.reg" look for it in: XPCD\$OEM$\Tweaks\RegTweaks.reg ?? or am i missing something???

SiMoNsAyS Posted on Dec 8 2004, 11:26 AM

  and why don't just place it in the same folder as cmdlines.txt? 

durex Posted on Dec 8 2004, 05:23 PM

  same reason i dont, i imagine.. anal retentive. 

LOL. thats it, partially. also because i run my regtweaks again from WPI later on (from the CD), and I don't want 2 copies of the file, in case i update one and forget the other. plus, i want to limit installing to the new formatted harddrive to as little as possible.

Link to comment
Share on other sites

wouldn't "REGEDIT /S ..\Tweaks\RegTweaks.reg" look for it in: XPCD\$OEM$\Tweaks\RegTweaks.reg ??  or am i missing something???
No, that would work perfectly the way you want it.

The two dots mean "parent folder". So, you work it out and see.

..\Tweaks\RegTweaks.reg
--equals--
XPCD\Tweaks\RegTweaks.reg

Link to comment
Share on other sites

fyi..

\install\reg\something.reg

\ = cdroot

or, u can do it the way they are showing & go up a level with . (which IMO is harder 2 learn) \ = %cdrom% sort of :P

[commands]

"\install\reg\something.reg"

would work if u have an "install" directory @ the root of your cd :)

Link to comment
Share on other sites

fyi..

\install\reg\something.reg

\ = cdroot

or, u can do it the way they are showing & go up a level with . (which IMO is harder 2 learn)    \    = %cdrom% sort of :P

[commands]

"\install\reg\something.reg"

would work if u have an "install" directory @ the root of your cd :)

thats even better.... thx!

Link to comment
Share on other sites

Short answer...

.\ = Current directory
..\ = Up one directory

\ is a backslash. On it's own means nothing.

We are using DOS, correct? Not a program helper.

I think GreenMachine's post is being taken in the wrong meaning.

Link to comment
Share on other sites

  • 4 weeks later...

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