Jump to content

Is it possible to add system variables via script?


ceez

Recommended Posts

Why don't you use sentenv???

setenv -m SETTINGS C:\__SETTINGS__
setenv -m SETTINGS D:\__SETTINGS__
setenv -m SETTINGS E:\__SETTINGS__
setenv -m SETTINGS F:\__SETTINGS__

alot easier, not? Well, if you don't think it's easier, at least you know about it by now...

(Why can't I attach a file??? :s)

Link to comment
Share on other sites


I figured it out!!!

I entered the entries in the system and exported it. The reason it did not add the other entries was because I needed a \\ between the paths....

before

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment]
"BRD_ROOT"="G:"
"BRD_SILDIR"="G:\SIL"
"PLB_PATH"="G:\;G:\PROGRAMS;G:\DATA;G:\COMMANDS"
"PLB_SYSTEM"="G:\COMMANDS"
"PLB_TERM"="ANSI"
"PLBWIN_ICON"="G:\BRD.ICO"

after

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Control\Session Manager\Environment]
"BRD_ROOT"="G:"
"BRD_SILDIR"="G:\\SIL"
"PLB_PATH"="G:\\;G:\\PROGRAMS;G:\\DATA;G:\\COMMANDS"
"PLB_SYSTEM"="G:\\COMMANDS"
"PLB_TERM"="ANSI"
"PLBWIN_ICON"="G:\\BRD.ICO"

see what I mean? go figure.

Bâshrat the Sneaky, I'll look into that exe that you posted. might work for something in the future.

Thanks MCT, jrzycrim & Bâshrat the Sneaky :thumbup

Link to comment
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...