Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] General Discussion (https://www.kinook.com/Forum/forumdisplay.php?f=2)
-   -   Copy Files (purge) (https://www.kinook.com/Forum/showthread.php?t=374)

mvermeulen 03-24-2004 03:33 PM

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....

kinook 03-24-2004 03:52 PM

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

mvermeulen 11-29-2006 10:53 AM

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...

kinook 11-29-2006 11:17 AM

Sure -- use the Delete Files action with 'Delete empty folders' unchecked.

mvermeulen 11-29-2006 11:19 AM

Excellent! Can't keep up with the new actions added. Thanks!


All times are GMT -5. The time now is 06:41 PM.


Copyright © 1999-2023 Kinook Software, Inc.