ตั้งเวลาปิดเครื่องอัตโนมัติ

Advertisements

เอาทริปเล็กๆน้อยมาฝากครับ สำหรับวิธีการตั้งเวลาปิดเครื่องคิมพิวเตอร์หรือการ 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)

Popularity: 1,010 views

บทความที่เกี่ยวข้อง
  • No related posts
  • กรอกเมล์เพื่ออัพเดทบทความ:

    1 Comment so far »

    1. ka said,

      Wrote on May 22, 2009 @ 5:34 pm

      พอดีคอมที่บ้านไม่รู้ใครมาตั้งค่า ปิดคอมแบบอัตดนมัตไว้ อยากจะยกเลิกต้องทำยังไงค่ะ

      ขอบคุณมากค่ะ

    Comment RSS · TrackBack URI

    Leave a Comment

    Name: (Required)

    E-mail: (Required)

    Website:

    Comment: