And fix global warming and cure poverty and get me a pay rise.
If only.
san_crazy, does this have anything to do with the compiler script earlier in this thread. You asked about a second parameter, and now you've gone off and changed the topic. In the future it might be better for everybody's sanity if you started a new thread when you change topics.
You don't need the -m switch unless you're shutting down a remote machine on the network.
shutdown -t %1 -f -s
Run from the command prompt as
batchfilename 120Do not name your batch file
shutdown, otherwise you'll run the MS command instead of your batch file.