ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

empty folder

Solved!
Go to solution

Hi Labview experts,

i been noticing my Delete folder function is not working properly when the folder is not emptied.

Can someone show me how to empty out a folder or delete a folder with files in it?

 

 

Message Edited by krispiekream on 01-13-2010 03:17 PM
Best regards,
Krispiekream
0 Kudos
Message 1 of 10
(6,982 Views)
Do you have the 'entire hierarchy' set to True?
0 Kudos
Message 2 of 10
(6,975 Views)

oh boy, i am using labview 7.0 and i dont think it has that.

labview 8.5 do.

Best regards,
Krispiekream
0 Kudos
Message 3 of 10
(6,968 Views)
OpenG has a recursive delete that you can use in 7.0.
0 Kudos
Message 4 of 10
(6,955 Views)

Unfornately, installing openG could be a problem when there is not internet on the testing station.

Are there any other options?

Best regards,
Krispiekream
0 Kudos
Message 5 of 10
(6,934 Views)
Install it on a PC that does have an internet connection and copy over the OpenG library files in whatever way you are able to get files onto the disconnected PC.
0 Kudos
Message 6 of 10
(6,924 Views)
in seven you can list the folders contents - delete all listed files before you delete the folder. If sub directory folders are also listed you also need to delete these (and there contents) first
David
www.controlsoftwaresolutions.com
0 Kudos
Message 7 of 10
(6,894 Views)

also check that the folder whichyou want to delete is having the proper permission.

Also there is a chance that one  or more of these files (or the refnum) might be open when you are trying to delete the folder itself. 

Regards
Guru (CLA)
0 Kudos
Message 8 of 10
(6,874 Views)
Solution
Accepted by topic author krispiekream

Hey krispiekream

 

In regards to your original request. Here is a simple routine you could use to delete all the files in a folder and then delete the folder itself.

 

file.png

Hope this helps.
-Ben

WaterlooLabs
Message 9 of 10
(6,856 Views)

thank works.

thank you so much!

 

Best regards,
Krispiekream
0 Kudos
Message 10 of 10
(6,833 Views)