|
-
Feb 5th, 2002, 01:05 PM
#1
Thread Starter
Member
How to append to system PATH?
Hello,
I may have missed previous answers to this in searching pasts posts, but...
How do you append to the system PATH in code for the current process without shelling out the PATH command?
Thanks, Dale.
-
Feb 5th, 2002, 01:24 PM
#2
You may want to take a look at the following link *found by searching the API forum with 'change path' as the search string:
http://www.vbforums.com/showthread.p...ht=change+path
If you want the change to be permanent, I don't think you can do it without changing the AUTOEXEC.BAT file or registry entry. Since you didn't say what version of Windows you want to do this on or whether you want the change to be permanent we can't say exactly what you need to do.
-
Feb 5th, 2002, 03:34 PM
#3
Thread Starter
Member
Thanks for the reference.
The change needs only to live within the same process - not permanent.
I guess I'm asking for the API call that is used to do this:
I know how to change the path using the advapi32.dll but I cannot get the path to take
I will post this on the API forum.
Thanks, Dale.
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
|