PDA

View Full Version : Copy Files (purge)


mvermeulen
03-24-2004, 04:33 PM
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, 04: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, 11: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, 12:17 PM
Sure -- use the Delete Files action with 'Delete empty folders' unchecked.

mvermeulen
11-29-2006, 12:19 PM
Excellent! Can't keep up with the new actions added. Thanks!