I am using mailsend command to get notified if any of the drives are running low on space. It looks like this:
mailsend -f test@yahoo -d yahoo -smtp inet_gw.yahoo -t test@yahoo - sub "Server 1 - C Drive Free Space Issue" -m J:\Scripts\TestStuff\CDriveMsg.txt
I have 12 drives in dev that I am checking the space on, and I don't want to create 12 DriveMsg.txt files for each of the drives. Is there any way that I can pass the drive letter as a parameter to the DriveMsg.txt, so I can use only one DriveMsg.txt file with 12 drives listed in it?