#1
|
|||
|
|||
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.... |
#2
|
|||
|
|||
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 |
#3
|
|||
|
|||
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... |
#4
|
|||
|
|||
Sure -- use the Delete Files action with 'Delete empty folders' unchecked.
|
#5
|
|||
|
|||
Excellent! Can't keep up with the new actions added. Thanks!
|
|
|