NewFile1 folder occasionally has a text file written into it, just 1 file.
The file gets occasionally deleted, and a new one is written into it from time to time.
I need a script which will look in the NewFile1 Folder, and if it sees a file in there, to send it via email, and attach it to the email. It will always send it to the same email address.
This needs to work in a .bat file as it will be an addition to an existing script.
If the script runs and there NewFile1 folder is empty, then of course it would not need to send any email out.
This script should work on Windows 7 and Windows Server 2008 in an Exchange 2010 environment.