| View previous topic :: View next topic |
| Author |
Message |
Shu
Joined: 07 Mar 2007 Posts: 2
|
Posted: Wed Mar 07, 2007 12:23 am Post subject: Delet folder in directory if its les then 5k |
|
|
| Im very new to this and have searched all of over how would I go about deleting folder if its less then 5kb |
|
| Back to top |
|
 |
melvin Site Admin
Joined: 25 May 2006 Posts: 595 Location: Santa Barbara, california
|
Posted: Wed Mar 07, 2007 6:17 am Post subject: |
|
|
1) Create a File Monitor task
source folder = folder to monitor and delete
Task to run = [enter delete task title]
Select opion to run task if total file size in folder is less than 5 kb
2) In the delete task, only empty subfolders can be deleted.
filename field = leave blank (this will delete all files in the folder. the sum of these file sizes is less than 5 kb from 1 above.)
source folder - should be the parent folder of the folder you want to watch & delete.
folder filter - enter the folder name
select the option to delete empty subfolders. |
|
| Back to top |
|
 |
Shu
Joined: 07 Mar 2007 Posts: 2
|
Posted: Wed Mar 07, 2007 8:23 pm Post subject: |
|
|
This doesnt work
ok this is what i have
I have a dir c:\download
I want any folder not file in that dir that is less then 5k to be deleted |
|
| Back to top |
|
 |
Robert Site Admin
Joined: 25 May 2006 Posts: 1140
|
Posted: Thu Mar 08, 2007 10:14 am Post subject: |
|
|
| hmm.. there is no delete/make folder task so your only option if you are using Automize Pro or Ent version is to create a custom script task. |
|
| Back to top |
|
 |
|