Auto Shutdown or Restart Computer Script.

Script - Restart Computer
  1. Open Notepad
  2. Type shutdown /r /f
  3. Click File > Save As 
  4. Choose Save as type is All Files (*.*)
  5. Type File name is restart.bat

Script - Shutdown Computer
  1. Open Notepad
  2. Type shutdown /s /t 00
  3. Click File > Save As 
  4. Choose Save as type is All Files (*.*)
  5. Type File name is shutdown.bat

Instruction
  1. Open Notepad
  2. Type [Scripts]
  3. Click File > Save As 
  4. Choose Save as type is All Files (*.*)
  5. Type File name is shutdown.bat

Schedule (Windows 7)
  1. Go to Start Menu is Start > All Program > Accessories > System Tools > Task Schedule
  2. Right-Click on Task Scheduler Library > Create Basic Task
  3. Type Name ...
  4. Choose Trigger is Daily
  5. Choose Time for Execute script
  6. Choose Action to Start a program.
  7. Browse file .bat (Your script)
  8. Finish

Comments

Popular posts from this blog

การตั้งเวลาระหว่าง Server และ Client

วิธีตั้งค่า NTP บน Primary Domain Controller

Installation and Run Node.JS on IIS