Bryan Posted December 1, 2004 Report Share Posted December 1, 2004 .. or should I say the ability to use them in path controls. I.e. for windows NT machines entering "%SystemRoot%" in a path variable would return "C:\WINNT" at runtime. Quote Link to comment
Mike Ashe Posted June 14, 2005 Report Share Posted June 14, 2005 Hmmm..... Methinks that the near term way to get this is to create a VI that parses an input text path, makes some system calls and/or calls to the registery to get that requested variable, then inserts and converts to path. Quote Link to comment
Rolf Kalbermatter Posted June 14, 2005 Report Share Posted June 14, 2005 .. or should I say the ability to use them in path controls. I.e. for windows NT machines entering "%SystemRoot%" in a path variable would return "C:\WINNT" at runtime. 2825[/snapback] Since the syntax of environment variables varies between systems it might be best to directly call into platform specific APIs. On Windows this would be ExpandEnvironmentStringsA in kernel32.dll. Rolf Kalbermatter Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.