LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Does folder exist vi

I am runnig Labview 8.0. I have used labview 8.2 in the past and there is a vi called Does folder exist? under the File IO/Adv. File func. This vi does not seem to exist on my copy of 8.0. Does anyone else have this vi on 8.0? If so is there some place I can go to download the library file for it? Thanks!
0 Kudos
Message 1 of 17
(4,470 Views)
In LV 8.2 there is a Check if File or Folder Exists function under the Advanced File functions.  If nothing else, you can use File Info and if the file or folder does not exist, you will get an error.  Get the status flag from the error cluster, True means error or file does not exist.  Be sure to clear the error before continuing (Clear Errors function).
- tbob

Inventor of the WORM Global
Message 2 of 17
(4,461 Views)

I added that VI to the palettes in LabVIEW 8.2...it "does not exist" in 8.0 and earlier.  😉

-D

Message 3 of 17
(4,429 Views)

Hi resrchengee,

In case it helps, a straight substitute (Input: Path, Output: Directory? (bool))  might be "File/Directory Info".  This seems to be what tbob referred to, though I wouldn't bother with the error-cluster...

Cheers.

Message Edited by tbd on 08-18-2007 05:52 PM

"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
Message 4 of 17
(4,413 Views)
well Darren thanks for that convenient vi! Smiley Wink
0 Kudos
Message 5 of 17
(4,369 Views)

You're welcome...I actually had a nugget a while back that talked about the 6 VIs I added to the File I/O palette in LabVIEW 8.2.  See here.

-D

0 Kudos
Message 6 of 17
(4,364 Views)
"Recursive File List" has also been EXTREMELY handy allowing me to build several tools that otherwise would have been a much more difficult.
0 Kudos
Message 7 of 17
(4,350 Views)

Darren,

May I know why you had not added the "Delete Directory Recursive.vi" also in the File I/O palette ?

Is that much dangerous to give the programmer the facility of this functionality in his hands directly ?

Can you kindly clarify me ?

 

- Partha ( CLD until Oct 2027 🙂 )
Message 8 of 17
(4,342 Views)
A lot of these functionality has been available in the OpenG toolkit.
If you had a delete recursively and you'd wire an empty path, it would delete every file on every disk!

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 9 of 17
(4,335 Views)

Darren,

Can you kindly go thro'  Reply 5 of Ti Tou's in the link below & explain me more of the functionality of the "Delete Directory Recursive.vi" ?

I understand this is what Ton has also mentioned in his reply just above.

But my doubt is how come an application sitting on the support of an OS can delete all the files in every disk [inclusive of the OS' too!]

It seems to be too bizzare ! Smiley Indifferent

- Partha ( CLD until Oct 2027 🙂 )
Message 10 of 17
(4,330 Views)