06-24-2009 09:53 AM
Hi,
How can we get the target folder of the short cut TestStand Public, which is in TestStand installation folder, through TestStand .Net API.
The path of target folder opens when double click is - C:\Documents and Settings\All Users\Documents\National Instruments\TestStand 4.2\
Regards,
Ceaser
Solved! Go to Solution.
06-24-2009 10:39 AM
From an expression:
locals.publicpath = RunState.Engine.GetTestStandPath(TestStandPath_Public)
Form a UI that uses the application manager:
appManager.GetEngine().GetTestStandPath(TestStandPath_Public)
Hope this helps,
-Doug
06-25-2009 03:31 AM
Thanks very much for the reply.
ultimately I need the path Components\\Icons\\ inside the public folder. Is there any API which gives it directly.
When tried the enumeration TestStandPaths.TestStandPath_PublicComponents it is giving up to Components\\ inside the public folder.
Regards,
Ceaser
06-25-2009 06:30 AM
The TestStandPaths function is enumerated. You can see the valid choices here.
If your path of interest is not in the list, you will have to use one of the enumerated paths and build or strip the path to get your folder of interest.
06-25-2009 11:53 AM
There is no icon specific directory API, using TestStandPaths.TestStandPath_PublicComponents and adding Icons\\ to it is probably your best solution.
-Doug
06-26-2009 02:34 AM
Hi,
Thanks for all for the support.
Regards,
Ceaser