I am attempting to create a script that will monitor a folder (a Dropbox folder).
When I need to shutdown my PC, I will just drop a file into the Dropbox folder. The script will see the new file, run a shutdown batch file, and delete the file in the Dropbox folder.
Please help me implement this.
To summarize:
- Check folder for new files.
- If there is one, run
shutdown.bat
. - Delete the file in the folder.