|
-
Feb 11th, 2005, 01:06 AM
#1
Thread Starter
Member
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
------------------------------------------------------
-
Feb 11th, 2005, 01:17 AM
#2
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.
-
Feb 11th, 2005, 01:21 AM
#3
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.
-
Feb 11th, 2005, 01:24 AM
#4
Re: how to change path variable
 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.
-
Feb 11th, 2005, 02:05 AM
#5
Thread Starter
Member
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
------------------------------------------------------
-
Feb 11th, 2005, 02:10 AM
#6
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.
-
Feb 11th, 2005, 02:17 AM
#7
Thread Starter
Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|