Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create & set environment variable

Status
Not open for further replies.

Varco

Programmer
Oct 22, 2000
49
US
What is the preferred way to create and set environment variables within a VB app? I need a VB app to create & set some environment variables that will then be available to another app executed from within the VB app. After this app closes I want to destroy the environment variables previously created.

Thanks,

Jim Varco
jimv@varcconsulting.com
 
Store the variable values in the registry with the 'GetSetting' and 'SaveSetting' functions. Quick and easy, your variable will be available to other apps and no additional resources are needed.

If you are interested look up 'GetSetting' and 'SaveSetting' in the help files, msdn and this forum.

Thanks and Good Luck!

zemp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top