NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to determine if a directory exists

Solved!
Go to solution

How can I detemine if a directory or folder exists? e.g. I have c:\some_directory, how can I tell in TestStand sequence whether this is the path of an existing directory?

0 Kudos
Message 1 of 7
(6,826 Views)
Solution
Accepted by KevinAtSepura

Look in the TestStand help.  In the Index tab type FindPath.

 

If you still have questions let me know.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 2 of 7
(6,821 Views)

What is the object class for FindPath method? Any examples on how to find if a directory exist?

I used object reference as Runstate.Engine.

 

Thanks

0 Kudos
Message 3 of 7
(6,552 Views)

Go to Start>>All Programs>>National Instruments>><TestStand>>>Documents>>Manuals>>NI TestStand API Reference Poster.

 

When that comes up do a search for FindPath.

 

Let me know if you have any questions.

 

Personally I prefer to use the TS Help for API method and property definitions but the API reference poster shows it all in one spot.

 

Regards,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 4 of 7
(6,547 Views)

As to your example question..... now there is.

 

 

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 5 of 7
(6,546 Views)

Thanks jigg, can the seqeunce be saved in 4.1 version please.

 

0 Kudos
Message 6 of 7
(6,540 Views)

Ok

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 7 of 7
(6,537 Views)