Results 1 to 3 of 3

Thread: How to append to system PATH?

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 1999
    Location
    Princeton, New Jersey
    Posts
    46

    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.

  2. #2
    PowerPoster jdc2000's Avatar
    Join Date
    Oct 2001
    Location
    Idaho Falls, Idaho USA
    Posts
    2,526
    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.

  3. #3

    Thread Starter
    Member
    Join Date
    Nov 1999
    Location
    Princeton, New Jersey
    Posts
    46
    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
  •  



Click Here to Expand Forum to Full Width