Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
Operating System - Microsoft
cancel
Showing results for 
Search instead for 
Did you mean: 

Using Enviroment Variables in Visual Basic

Ron Bromwell
Frequent Advisor

Using Enviroment Variables in Visual Basic

I want to access an local machine enviroment variable from inside of visual basic. The variable is a path and I want to right a file to it. Any ideas?

Thanks,
Ron
life's a journey, not a destination
1 REPLY
Ganesh Babu
Honored Contributor

Re: Using Enviroment Variables in Visual Basic

http://www.microsoft.com/technet/treeview/default.asp?url=/technet/scriptcenter/scrguide/sas_wsh_kmmj.asp

Check this out.. use the windows script shell object..

Hope this helps.

Ganesh