SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Folder Exist ?

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Folder Exist ?
Author Message
Rick Ireland



Joined: 30 Oct 2000
Posts: 44

Post Folder Exist ? Reply with quote

Hi -

What's the best way to test whether a directory exists or not in JAL? If a given folder doesn't exist, I need to create it; if it does, I need to clear it of all contents (files and sub-folders).

Which begs another question: How best to implelent the UNIX 'rm -r' command, so that all files and subfolders are removed in one blow.

Thanks!

Rick Ireland

Mon Nov 27, 2000 11:05 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7849

Post Re: Folder Exist ? Reply with quote

Use FileExists statement. It works for both files and directories

To delete all files and and subfolders in one blow run the DOS "rd /S /Q" command

: Hi -

: What's the best way to test whether a directory exists or not in JAL? If a
: given folder doesn't exist, I need to create it; if it does, I need to
: clear it of all contents (files and sub-folders).

: Which begs another question: How best to implelent the UNIX 'rm -r' command,
: so that all files and subfolders are removed in one blow.

: Thanks!

: Rick Ireland

Mon Nov 27, 2000 1:05 pm 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.