I want to use Task Scheduler to send an email if a drive is.
At the moment I can send an email from the task scheduler and can make tasks no problem.
What I need help with is possibly a .bat file to see if the drive is mounted or not.
I can check if the device is mounted using.
if exist F:\nul goto Mounted
This pops up a GUI saying the drive isn't present.
What I want it to do is fire off the 'send an email' trigger
If the drive is present I do not want to send an email.