I wrote a simple cmd script to be called up by windows scheduled tasks at 1am and run SyncToy for my backups. The problem is that one of the backup locations is on a network drive, which windows doesn't think is connected until you click on it. So the script starts by opening explorer to that drive, which works fine when run by me.
My question:
Will scheduled tasks (which starts the computer to run) turn off the computer again now that explorer has been opened? Both the script and SyncToy close themselves after they're finished, but I don't know how to close explorer (kill explorer.exe is a bit too heavy handed, unsurprisingly). If I do need to shut the explorer window, how would I do it?
