NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Runtime string Windows user directory

Solved!
Go to solution

I need to build a string that points to the Windows folder for the current user.

Can TestStand Engine determine the Windows current user directory at runtime?

0 Kudos
Message 1 of 2
(4,012 Views)
Solution
Accepted by topic author tempacheer

There is probably a win32 sdk function you can call from the dll adapter which could do that. I think SHGetFolderPath() has the functionality you are looking for. Look on the microsoft developer's network website for more details on this function.

 

Hope this helps,

-Doug

0 Kudos
Message 2 of 2
(3,987 Views)