NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

how get windows installation path

Hello, Is there a simple way to get the windows installation path inside TestStand?
 
thanks,
 
Mauro Magni
0 Kudos
Message 1 of 4
(3,509 Views)
If you mean the path to where TestStand is installed, it is Engine.TestStandDirectory.
0 Kudos
Message 2 of 4
(3,496 Views)

No, I meant the path where operating system is installed (generally c:\windows or c:\winnt)

I found a way to get it (calling a batch file which reads the variable %WINDIR% and pass the result to TestStand as a return code) but I'd like a better way...May be a TestStand store that path somewhere?

0 Kudos
Message 3 of 4
(3,485 Views)
Have you tried the GetEnvironmentVariable function in the Win32 API?  This function is documented on MSDN  I've attached a sequence file that retrieves the value of WINDIR.
----
I am the founder of CnCSoftwareSolutions. When not cleaning up baby drool, I write about test data or work on Vision, a tool for understanding your test data. Visit me at www.cncsoftwaresolutions.com
Message 4 of 4
(3,473 Views)