SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Remove old directories

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Remove old directories
Author Message
Reto



Joined: 14 Jan 2003
Posts: 16

Post Remove old directories Reply with quote

Is there a simple way using JAL to remove directories older than today from a certain path?

Tue Jan 14, 2003 11:33 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7963

Post Re: Remove old directories Reply with quote

Sure.

Assuming you are using version 3.4 here are the steps you can make to script such processing

1. Today - to get today's date
2. SubDir -- to get the list of directory names
3 LoopWhile -- to loop through found dir names
4. FileDate -- to get date of a file/directory
5. isLess [file date], [today] go delete step (7)
6. skip step 7 and go to step 8
7. DirDelete - delete dir and all contained files/directories
8. END of LoopWhile

: Is there a simple way using JAL to remove directories older than today from a
: certain path?

Tue Jan 14, 2003 12:39 pm View user's profile Send private message
Reto



Joined: 14 Jan 2003
Posts: 16

Post Re: Remove old directories Reply with quote

How can I make this work under version 3.3.5?

Regards Reto

: Sure.

: Assuming you are using version 3.4 here are the steps you can make to script
: such processing

: 1. Today - to get today's date
: 2. SubDir -- to get the list of directory names
: 3 LoopWhile -- to loop through found dir names
: 4. FileDate -- to get date of a file/directory
: 5. isLess [file date], [today] go delete step (7)
: 6. skip step 7 and go to step 8
: 7. DirDelete - delete dir and all contained files/directories
: 8. END of LoopWhile

Mon Jan 20, 2003 9:42 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7963

Post Re: Remove old directories Reply with quote

Why not to upgrade to 3.4? The upgrade is free.

P.S. In 3.3 you can use FileFindFirst, FileFindNext and FileGetAttr to search for subdirectories.

: How can I make this work under version 3.3.5?

: Regards Reto

Mon Jan 20, 2003 9:49 am View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.