In batch (or anything to do with the Microsoft command line) it conventional to use the / character rather than the - character to mark out switches, but that shouldn't matter if they both work.
I can tell you one problem you'll have with that program.
The maximum delay you're allowed to set on a shutdown command is 600 (10 minutes).
I can't think of any task to try your hand at, and the common ones won't work as batch isn't really like any other language.
One command that is certainly worth getting your head around is for
Other than that I'd just suggest finding things on your own computer that you'd like to automate. Perhaps have a go at reorganizing your music folder, creating backups, checking for old and unused files, etc. One little batch file I have places a hidden system folder called autorun.inf onto flash disks, a trick that prevents viruses from making an autorun.inf file in that location and therefore prevents them from infecting anything from my flash. It wasn't an exercise to teach myself batch files, but a tool to do something quickly which was previously taking several minutes each time.
PS Always test your script against a copy of your files, not the original
. The best batch coder I know once left out a single line break in posting his script. That one change made the script delete every file and folder in the folder it was run from, deleting them as completely as if the recycle bin had then been emptied. You don't want that happening to your files.
Edited by JosiahK, 09 June 2011 - 04:33 AM.