By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,694 Members | 1,307 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,694 IT Pros & Developers. It's quick & easy.

Adding to the PATH variable

P: n/a
I remember setting the PATH environment variable from years back, but haven't
touched it since win95 days. Now i have to add a couple of lines to it using
vb.net so that a console app will work properly.

I've read that at the moment you can only get environment variables, and
that vb.net 2005 will allow you to set them.

Does anyone know how to add to the PATH variable using vb.net 2003?
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi,

Option 1: Make entries into the registry directly. For user-specific env
variables: HKEY_CURRENT_USER\Environment For system-wide env variables:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Contro l\Session
Manager\Environment

Option 2: Use Win32 API SetEnvironmentVariable()

"Colmag" <Co****@discussions.microsoft.com> wrote in message
news:A4**********************************@microsof t.com...
I remember setting the PATH environment variable from years back, but
haven't
touched it since win95 days. Now i have to add a couple of lines to it
using
vb.net so that a console app will work properly.

I've read that at the moment you can only get environment variables, and
that vb.net 2005 will allow you to set them.

Does anyone know how to add to the PATH variable using vb.net 2003?
Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.