SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Disk Available

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Disk Available
Author Message
dave



Joined: 16 Jun 2003
Posts: 41

Post Disk Available Reply with quote

Can 24x7 run a job that will be able to tell me if a drive is present on a machine or not?

I would need the job to check for a drive (d:\). If it
is present I need to kick of Job A. If it is not
kick off Job B.

Thanks for the help. :-)

Thu Apr 28, 2005 10:46 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7974

Post Re: Disk Available Reply with quote

In VBScript type job you can use Drives collection to enumerate drivers and then loop through the array and check if 'D:' is among enumerated drives. An example is available in the on-line help.
In JAL script you can use Dir with a custom error handling to check for the drive, for example,

OnErrorGoTo ERROR_HANDLER
Dim list, string
Dir "d:\\*.*", list
OnErrorStop
JobRun("Job A")
Exit

ERROR_HANDLER:
OnErrorStop
JobRun("Job B")

: Can 24x7 run a job that will be able to tell me if a drive is present on a
: machine or not?

: I would need the job to check for a drive (d:\). If it
: is present I need to kick of Job A. If it is not
: kick off Job B.

: Thanks for the help. :-)

Thu Apr 28, 2005 11:20 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.