Step-by-Step:
- create a new text file on your desktop
- open it to edit and enter:
@ECHO OFF
REM Everything behind the word REM is just a comment
REM Your description, what this batch does goes here...
REM stop this services:
REM (type NET START in a DOS-BOX to see the service names to use here)
NET STOP theNameOfServiceToStop
NET STOP "theNameOfService with blanks to stop"
REM shut down the PC. Enter 'shutdown /?' into a DOS-Box to see all available parameters
SHUTDOWN /S
REM this is the end, my friend
- save this file with a CMD extension like shutdown.cmd
- double click this batch file and watch your PC shutting down.
I can't guarantee that it will work with your environment and settings...
Maybe you have to right click the batch and choose "Run As Admin" for Vista/Win7 to execute with enough rights.
Perhaps you have to enter a line or two in between to wait before doing the next step, like
PING -n 8 127.1.2.3 >NUL
Any more questions? Just asks...