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


ka
on May 22nd, 2009
@ 5:34 pm:
พอดีคอมที่บ้านไม่รู้ใครมาตั้งค่า ปิดคอมแบบอัตดนมัตไว้ อยากจะยกเลิกต้องทำยังไงค่ะ
ขอบคุณมากค่ะ
oasismai
on Jul 23rd, 2009
@ 11:15 am:
ดีๆครับคือว่าผมอยากได้โค้ดการเขียนโปรแกรมตั้งเวลาปิดเครื่องเปิดเครื่องครับ
oasismai
on Jul 23rd, 2009
@ 11:18 am:
อยากได้โค้ดการเขียนโปรแกรมมันอะครับ แบบว่าเขียนโค้ดปิดเครื่องแล้วก็เปิดเครื่องอะครับ
nathcanan
on Aug 6th, 2009
@ 9:38 pm:
ดีเลยพอดีพี่ที่ไหมไม่รู้ขอบเล่นเน็ตทุกวันเล่นถึงตี1 ตี2
เลยต้องหาทางเเก้โดยด่วน
ขอบคุณมากค่ะ
hs4tsz
on Dec 10th, 2009
@ 8:32 pm:
มีวิธีสั่งเปิดใน ดอสไหมครับ
pool
on Jan 14th, 2010
@ 5:39 pm:
มีวิธี เปิดเครื่อง แบบใช้ command บ้างไหมค่ะในเมื่อปิดด้วย command แล้วมีเปิดเครื่องด้วย command ไมค่ะ