Setting up environment variables

Discussion in 'Ruby' started by Sarah Tanembaum, Aug 20, 2004.

  1. 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
    Sarah Tanembaum, Aug 20, 2004
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Rick Kasten

    Setting Environment Variables

    Rick Kasten, Jul 7, 2004, in forum: Perl
    Replies:
    2
    Views:
    587
    Howard
    Jul 7, 2004
  2. =?Utf-8?B?YnNmbDQ0?=
    Replies:
    0
    Views:
    477
    =?Utf-8?B?YnNmbDQ0?=
    May 12, 2004
  3. Steve
    Replies:
    6
    Views:
    24,065
    lightsedge
    May 1, 2007
  4. Ulf Meinhardt
    Replies:
    0
    Views:
    562
    Ulf Meinhardt
    Oct 13, 2004
  5. Replies:
    5
    Views:
    644
Loading...

Share This Page