LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

retrieve OS folder path

I need to know the installed OS folder path.
To my knowledge, I have to use some API function using call library.
 
Currently, Labwindows and any other NI product(toolkits) are available from NI full development package.
Is there some useful information(book or source code) on window API programming within any other NI products?
 
Thank you in advance.

메시지가 08-22-2007 03:50 PM에 labmaster에 의해 편집되었음

0 Kudos
Message 1 of 4
(3,457 Views)

The function you want is included in lvwutil.zip. You can search the developer zone for it's location.

The most comprehensive information on the windows api is on MSDN.

0 Kudos
Message 2 of 4
(3,440 Views)

You can read environment variables in labview.

 

%SystemDrive% C:
%SystemRoot% C:\WINNT
C:\WINDOWS
%WinDir% C:\WINNT
C:\WINDOWS
%SystemDirectory% C:\WINNT\System32
C:\WINDOWS\System32
%ComSpec% C:\WINNT\system32\cmd.exe
%programfiles% C:\WINNT\Program Files
%Temp% C:\DOCUME~1\Usr\LOCALS~1\Temp from
C:\Documents and Settings\Usr\Local Settings\Temp
%Tmp%
%HOMEDRIVE% C: The drive letter associated with the user's home directory
%HOMEPATH% The path to the user's home directory (excluding drive):
\Documents and Settings\Guest
%OS% Windows_NT (even on Windows XP machines
The operating system the user is running
%USERDOMAIN% The name of the domain that contains the user's account
%USERNAME% The user's name
%USERPROFILE%
%USERPROFILE%\Desktop
The user's desktop folder

0 Kudos
Message 3 of 4
(3,432 Views)
another method... lv 8.2

Paul
Message 4 of 4
(3,423 Views)