ตั้งเวลาปิดเครื่องง่ายๆด้วย shutdown command

เอาทริปเล็กๆน้อยมาฝากครับ สำหรับวิธีการตั้งเวลาปิดเครื่องคิมพิวเตอร์หรือการ shutdown computer จริงๆแล้วการตั้งเวลาปิดเครื่องจะมีโปรแกรมสำหรับใช้ shutdown ครับ แต่วิธีที่ผมจะพูดถึงจะเป็นการใช้ command ของ dos ในการใช้ shutdown คอมพิวเตอร์ครับ ไม่ต้องลงโปรแกรมให้หนักเครื่อง

คำสั่งที่ใช้ในการตั้งเวลา shutdown เครื่องคอมพิวเตอร์

ให้เราพิมพ์ command ที่โปรแกรม Dos
วิธีเปิด dos คลิก start-> run พิมพ์ cmd
แล้วพิมพ์คำสั่ง at 22:00 shutdown -s -t 00  อธิบายเล็กน้อย at 22:00 หมายถึง shutdown เครื่องตอน 4 ทุ่ม -s หมายถึงสั่งให้ shutdown ถ้าตรงนี้เป็น -r จะเป็นการสั่ง restart เครื่อง ส่วน -t time หมายถึงเวลา 00 คือ shutdown ทันทีเมื่อถึง 4 ทุ่ม

หรือจะพิมพ์ตรง RUN เลยแบบนี้ก็ได้ครับ

     

สำหรับ parameter อื่น

No args Display this message (same as -?)
-i Display GUI interface, must be the first option
-l Log off (cannot be used with -m option)
-s Shutdown the computer
-r Shutdown and restart the computer
-a Abort a system shutdown
-m \\computername Remote computer to shutdown/restart/abort
-t xx Set timeout for shutdown to xx seconds
-c “comment” Shutdown comment (maximum of 127 characters)
-f Forces running applications to close without warning
-d [u] [p]:xx:yy The reason code for the shutdown
u is the user code
p is a planned shutdown code
xx is the major reason code (positive integer less than 256)
yy is the minor reason code (positive integer less than 65536)

Share this article: You can download this plugin at e4share.com
  • Zickr
  • Duocore
  • Kudd
  • Lunlala
  • Dunweb
  • Techkr
  • Bogtor
  • Kez6
  • JeedZa
  • Left Hit
  • Siam Collective
  • del.icio.us
  • Digg
  • Google
  • Technorati
  • Thai Health
  • YahooMyWeb
อ่าน :1492

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...
ส่งบทความให้เพื่อน ส่งบทความให้เพื่อน
หัวข้อที่น่าจะเกี่ยวข้อง
    No related posts

Leave a Comment

Name: (Required)

E-mail: (Required)

Website:

Comment: