Jump to content

[CR] Windows Environment Variable Reader Writer


Recommended Posts

index.php?automodule=downloads&req=display&code=sst&id=48

File Name: Windows Environment Variable Reader Writer

File Submitter: hooovahh

File Submitted: 30 Oct 2006

File Updated: 2 Nov 2006

File Category: General

Purpose:

This Vi was made so that you can easily view and create environment variables from within Windows XP.

Features:

You are able to read all environment variables which you have available to you at the command prompt by typing "set". It also can write environment variables by writing them to the registry in the following location:

HKEY_CURRENT_USER\Environment

Also for added safty it will check the name you are trying to use, and won't allow its creation if a variable with that name already exists.

Usage:

To use this VI you need to be using Labview version 8.20. With Labview 8.20 installed open the VariableReadWrite.vi file, then click run. While it's running open the View Variables tab and click "Refresh Variables" to view all your command prompt variables.

Two String arrays are created, the Name of the variables, and their values. A text window is also displaying what the user would see if they typed "set" at a command prompt.

To create a variable open the Create Variables tab and fill in the information for Variable Name and Variable Value; then click Create Variable. Please note that you may need to log off then back on for the new variable to take effect.

If needed there is a "Run Regedit" button which will open the registry. From here you can see the newly created variables in the location mentioned in the Features section.

When you are done click stop to end the program.

Click here to download this file

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.