NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

TestStand Public Target folder

Solved!
Go to solution

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

Message 1 of 6
(4,713 Views)

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

Message 2 of 6
(4,709 Views)

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

0 Kudos
Message 3 of 6
(4,693 Views)

The TestStandPaths function is enumerated. You can see the valid choices here.

 

TestStandPaths Enumeration

 

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.

 


Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
If you don't hate time zones, you're not a real programmer.

"You are what you don't automate"
Inplaceness is synonymous with insidiousness

0 Kudos
Message 4 of 6
(4,685 Views)
Solution
Accepted by topic author ceaser

There is no icon specific directory API, using TestStandPaths.TestStandPath_PublicComponents and adding Icons\\ to it is probably your best solution.

 

-Doug

0 Kudos
Message 5 of 6
(4,675 Views)

Hi,

Thanks for all for the support.

 

Regards,

Ceaser

0 Kudos
Message 6 of 6
(4,661 Views)