PDA

View Full Version : SUF 6.0 - Action, Delete files


Romahe
11-22-2001, 09:29 AM
The Delete files action have the Recurse subdirectories option, but i have problem with it.

The action:
%AppDir%\*.*
is supose to delete all files and subfolders of the %AppDir% (like the example 2 of the delete files action help say)

I have various subfolders on %AppDir%, but the action only delete the subfolders that have 1 or more files on it, the empty subfolders are not deleted.

is this normal?

pit
11-22-2001, 11:49 AM
This was the same in V5. I worked around it by making an "Execute" command with these settings:

File to execute:
cmd

Command line args:
/c rmdir /s /q "%AppDir%"

Run mode:
Minimized

Check "Wait for program to finish"


However i think this will not work for all windows variants. So I would prefer if "Delete Files" had an option to delete the empty subfolders too.

Darryl
11-22-2001, 01:16 PM
Hi,

I have brought this functionality to our developers' attention, we will look into this. Thank you.

------------------
Sincerely,

Darryl Hnatiuk
Indigo Rose Corporation

Brett
11-23-2001, 11:52 AM
In the next release, if you use wildcards in your source and turn on Recurse Subdrectories, we will remove all empty directories as well.

- Brett

JXBURNS
04-03-2002, 04:08 PM
In 6.0.0.4 the Delete Files option now works fine in that it deletes all files and sub-folders.

However it also deletes the folder that you are deleting from. For example I have set delete files to delete from:

F:\XXXX\*.*

with recursive set on. But the system deletes the folder XXXX as well. The big problem here is I do not know the name of the folders below XXXX (which is why recursive is set on) but I do not want XXXX deleted as it is on a network drive and has certain security rights assigned to it. Deleting/recreating the folder in SUF does not recreate those rights in Netware.

Is there any simple way to delete just the files and sub-folders but not the folder itself?

Thks

John