Setting up environment variables

S

Sarah Tanembaum

What would be the best way to set a bunch of system-wide environment
variables(I have about 1000 lines) from a script instead of GUI?

I tried using 'setx /m' but it becomes to cumbersome.

e.g:

setx /M PFI="c:\Program Files"
setx /M SRO="%SystemRoot%"
setx /M S32="%SRO%\system32"

setx /M P0=%PFI%;%SR%;%S32%
....
etc,etc,etc...

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top