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. :-)
|