Community Documents

cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing XP User Login Information Using Enviroment Variables in CVI

This example shows how to access enviroment variables and their value within CVI.  In variables that are accessed in this example are the currently logged in user as well as their home directory.

Here is a snippet of code detailing how to do this:

  drive = getenv("HOMEDRIVE");
  home = getenv("HOMEPATH");
  user = getenv("USERNAME");

Cheers,
Kelly R.
Applications Engineer
National Instruments
Contributors