Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 03-24-2004, 04:33 PM
mvermeulen mvermeulen is online now
Registered User
 
Join Date: 07-15-2003
Posts: 56
Send a message via Yahoo to mvermeulen
Copy Files (purge)

I have used this action quite a bit and it has worked well but... I would like to retain the directory but delete ALL of the contents. The current purge deletes everything INCLUDING the folder specified.

Example: D:\VBPro\temp. Purge Action deletes not only the contents of temp but temp itself.

What can I do to retain the specified folder?

Thanks....
Reply With Quote
  #2  
Old 03-24-2004, 04:52 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
Purging files without deleting folders is not an option in the Copy Files action. You could use a Run Program action with a command of

%DOSCMD% del "D:\VBPro\temp" /s/f/q
Reply With Quote
  #3  
Old 11-29-2006, 11:53 AM
mvermeulen mvermeulen is online now
Registered User
 
Join Date: 07-15-2003
Posts: 56
Send a message via Yahoo to mvermeulen
Sorry to re-open this but I wondered if the status has changed at all? It would be very useful to be able to purge out certain types of files but if that leaves the folder empty, I would still like to retain the structure. The folders won't always be empty as I am only deleting certain types of files and not all.

Thanks...
Reply With Quote
  #4  
Old 11-29-2006, 12:17 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
Sure -- use the Delete Files action with 'Delete empty folders' unchecked.
Reply With Quote
  #5  
Old 11-29-2006, 12:19 PM
mvermeulen mvermeulen is online now
Registered User
 
Join Date: 07-15-2003
Posts: 56
Send a message via Yahoo to mvermeulen
Excellent! Can't keep up with the new actions added. Thanks!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 03:47 PM.


Copyright © 1999-2023 Kinook Software, Inc.