Results 1 to 17 of 17

Thread: [Resolved]how to change path variable

Hybrid View

  1. #1

    Thread Starter
    Member neanthedral's Avatar
    Join Date
    Dec 2004
    Posts
    57

    Re: how to change path variable

    hey i saw that thread..there they have said that we can do it using registry...
    how do we do that???
    ------------------------------------------------------
    "i am neither a psycopath nor ur abnormal demi-god;
    me - i am just an average software engineer...which is far worse ..so beware.. " .NeaNthedraL
    ------------------------------------------------------

  2. #2
    Frenzied Member pnish's Avatar
    Join Date
    Aug 2002
    Location
    Tassie, Oz
    Posts
    1,918

    Re: how to change path variable

    The PATH environment is stored in the registry here:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
    So I guess you could modify it that way.
    Pete

    No trees were harmed in the making of this post, however a large number of electrons were greatly inconvenienced.

  3. #3
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: how to change path variable

    export the hive before you attempt to change it. if you do it wrong, your system will be unusable.

  4. #4
    Frenzied Member pnish's Avatar
    Join Date
    Aug 2002
    Location
    Tassie, Oz
    Posts
    1,918

    Re: how to change path variable

    Quote Originally Posted by dglienna
    export the hive before you attempt to change it. if you do it wrong, your system will be unusable.
    Good advice
    Pete

    No trees were harmed in the making of this post, however a large number of electrons were greatly inconvenienced.

  5. #5

    Thread Starter
    Member neanthedral's Avatar
    Join Date
    Dec 2004
    Posts
    57

    Re: how to change path variable

    export the hive before you attempt to change it. if you do it wrong, your system will be unusable.
    now u are confusing me...
    hive??export??
    how do i do that???
    and how do i change the registry ?? should i use regedit or is there some vb method for this??
    n y will my system become unstable??
    ------------------------------------------------------
    "i am neither a psycopath nor ur abnormal demi-god;
    me - i am just an average software engineer...which is far worse ..so beware.. " .NeaNthedraL
    ------------------------------------------------------

  6. #6
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: how to change path variable

    you can use regedit. find the hive (where the key is located) and click export to save a copy of it. whether or not you manage to do what you want, you will always have a way to get back your system, although you would have trouble doing it. safemode would be involved, and it would not be pretty if the system wouldn't start.

    it you want, you can also use VB to change the registry. this carries more risks, as you may eventually make the path too big, as I implied before.

    I still suggest you use a different method. if you are distributing your program, your users may not like it if you change their path, and they may have software on their system that may not allow it to be changed.

    but, at least you were warned.

  7. #7

    Thread Starter
    Member neanthedral's Avatar
    Join Date
    Dec 2004
    Posts
    57

    Re: how to change path variable

    it is taking me time to get what u were saying..
    but i think i understand u..
    thanks

    nean
    ------------------------------------------------------
    "i am neither a psycopath nor ur abnormal demi-god;
    me - i am just an average software engineer...which is far worse ..so beware.. " .NeaNthedraL
    ------------------------------------------------------

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width