change global environment variables like %SystemRoot%

Try looking for help here if you are having problems with the Ultimate Boot CD.

Moderators: Icecube, StopSpazzing

Locked
Message
Author
Goddchen
Posts: 3
Joined: Fri Sep 29, 2006 8:34 am
Contact:

change global environment variables like %SystemRoot%

#1 Post by Goddchen » Fri Sep 29, 2006 8:40 am

hi, i need to change the global environment variables like %SystemRoot% while the UBCD is running... for example for loading the registry of a hard disk with regedit ( set %SystemRoot% to the new location on the harddisk)... how can i do that? i saw it on some UBCD from a friend...

Gr33tz Goddchen

Constance
Posts: 338
Joined: Fri Sep 23, 2005 1:21 am
Location: France

#2 Post by Constance » Fri Sep 29, 2006 2:07 pm

You just have to type SET SYSTEMROOT= followed with the path you want.
Either on command line or in the autoexec.bat of your boot disk image.
Hammerite Compendium of Precepts, Regimens and Rules of Conduct, Vol. 113 :
A stroke of thy chisel, once made, canst be undone, but a stroke thou dost not make from fear is a worse flaw.
Be not cautious - be correct.

Goddchen
Posts: 3
Joined: Fri Sep 29, 2006 8:34 am
Contact:

#3 Post by Goddchen » Sat Sep 30, 2006 1:45 am

both ways doesn't solve my problem... when you do that command in cmd, the changes only take effekt in THAT cmd... nowhere else... and changing it in autoexec.bat doesn't work for me either, because i want to change it "on-the-fly"...

Constance
Posts: 338
Joined: Fri Sep 23, 2005 1:21 am
Location: France

#4 Post by Constance » Sat Sep 30, 2006 12:55 pm

Hmm I don't really understand what you mean ... could you please be a bit more explicit about what you want to do and why using it in a command interpreter isn't enough ?
Hammerite Compendium of Precepts, Regimens and Rules of Conduct, Vol. 113 :
A stroke of thy chisel, once made, canst be undone, but a stroke thou dost not make from fear is a worse flaw.
Be not cautious - be correct.

Goddchen
Posts: 3
Joined: Fri Sep 29, 2006 8:34 am
Contact:

#5 Post by Goddchen » Sun Oct 01, 2006 5:11 am

ok, i'll try...
i want to set %SystemRoot% to any hard drive windows installation accessable and then start regedit, so that regedit loads the registry of the windows installation on the hard drive instaed of the one from the UBCD.
when i change environment variables in a shell, those changes only take effect in THAT shell... nowhere else... so when i start regedit then, it still has the default environment variables...

Constance
Posts: 338
Joined: Fri Sep 23, 2005 1:21 am
Location: France

#6 Post by Constance » Mon Oct 02, 2006 5:13 am

Hmm ... regedit huh ?
That's a windows program, right ?
Are you talking about UBCD4Win or UBCD ?
If that's about UBCD4Win, you would certainly get better advices on the ubcd4win forums.
Hammerite Compendium of Precepts, Regimens and Rules of Conduct, Vol. 113 :
A stroke of thy chisel, once made, canst be undone, but a stroke thou dost not make from fear is a worse flaw.
Be not cautious - be correct.

Locked