Announcement

Collapse
No announcement yet.

SUF 6.0 - Action, Delete files

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • SUF 6.0 - Action, Delete files

    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?

  • #2
    Re: SUF 6.0 - Action, Delete files

    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.

    Comment


    • #3
      Re: SUF 6.0 - Action, Delete files

      Hi,

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

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

      Darryl Hnatiuk
      Indigo Rose Corporation

      Comment


      • #4
        Re: SUF 6.0 - Action, Delete files

        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

        Comment


        • #5
          Re: SUF 6.0 - Action, Delete files

          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

          Comment

          Working...
          X