ORACLE on NT

Back to Scripting | Run and Email disk space report


This job simply runs the DIRUSE command on each logical drive of the local host, redirecting the output to a text file. The text file is then emailed to the destination email address (following the -D). Modify the drive letters to reflect the logical drives available on each host that runs this script.


DiskUsed.cmd

DIRUSE /M /, C:\ D:\ E:\ F:\ G:\ H:\ I:\ J:\ K:\ > D:\Scheduled\DiskUsed.txt
MAILTO -H YourMailServer -U DBServer -D YourEmail@YourDomain.com -S "Disk Used" -MF D:\Scheduled\DiskUsed.txt

Adding this job to the scheduler

AT 7:00AM /EVERY:M,T,W,Th,F,S,Su "D:\Scheduled\DiskUsed.cmd"