Đọt Rau Má
09-07-2009, 01:12 PM
Hướng dẫn bạn tạo một chương trình hẹn giờ tắt máy tính đơn giản mà bạn chắc chắn sẽ làm được, hi hi http://www.diendantinhoc.vn/images/smilies/yahoo/21.gif (http://www.diendantinhoc.vn/images/smilies/yahoo/21.gif)http://diendan.baobongda.com.vn/images/smilies/SmileYM/totlem.gif (http://diendan.baobongda.com.vn/images/smilies/SmileYM/totlem.gif)
Đầu tiên bạn mở Notepad lên (Start->Program->Accessories->Notepad)
Bạn copy đoạn mã lệnh sau và dán vào:
@echo off
@shutdown -s -t 10 -c "Chuong trinh tat may don gian ma hieu qua. theone.it"
@echo "BAM VAO 1 PHIM BAT KY DE TAT CHUONG TRINH NAY"
@pause
@shutdown -a
Sau đó bạn lưu file này với phần mở rộng là .BAT
Ví dụ: TatMay.BAT
Chạy TatMay.BAT bạn sẽ thấy chương trình của mình vừa làm.
Thông số bạn có thể thay đổi mình đã bôi đen đậm
10: số giây chờ tắt máy, ví dụ bạn muốn hẹn 1 giờ sau máy tự tắt thì chỉ cần thay 10 thành 3600....
Khi muốn sửa file TatMay.BAT thì chỉ cần bấm chuột phải vào nó và chọn Edithttp://diendan.baobongda.com.vn/images/smilies/SmileYM/totlem.gif (http://diendan.baobongda.com.vn/images/smilies/SmileYM/totlem.gif)http://diendan.baobongda.com.vn/images/smilies/SmileYM/totlem.gif (http://diendan.baobongda.com.vn/images/smilies/SmileYM/totlem.gif)
Các bạn có thể tạo icon trên màn hình desktop
Xem hình :
click chuột phải chọn :
http://diendan.baobongda.com.vn/attachment.php?attachmentid=729&stc=1&d=1252303638 (http://diendan.baobongda.com.vn/attachment.php?attachmentid=729&stc=1&d=1252303638)
Trên màn hình desktop bạn làm:
Click chuột phải chọn Properties, sau đó:
http://diendan.baobongda.com.vn/attachment.php?attachmentid=726&stc=1&d=1252302974 (http://diendan.baobongda.com.vn/attachment.php?attachmentid=726&stc=1&d=1252302974)
Chọn Change Icon...
Chọn oke
Lựa chon Icon
http://diendan.baobongda.com.vn/attachment.php?attachmentid=727&stc=1&d=1252303112 (http://diendan.baobongda.com.vn/attachment.php?attachmentid=727&stc=1&d=1252303112)
Chọn oke...rồi oke tiếp...
Từ nay bạn chỉ cần click vào Icon là có thể tắt máyhttp://diendan.baobongda.com.vn/images/smilies/SmileYM/4.gif (http://diendan.baobongda.com.vn/images/smilies/SmileYM/4.gif)
http://diendan.baobongda.com.vn/attachment.php?attachmentid=728&stc=1&d=1252303263 (http://diendan.baobongda.com.vn/attachment.php?attachmentid=728&stc=1&d=1252303263)
Hãy thử nhé các bạnhttp://diendan.baobongda.com.vn/images/smilies/SmileYM/4.gif (http://diendan.baobongda.com.vn/images/smilies/SmileYM/4.gif)http://diendan.baobongda.com.vn/images/smilies/SmileYM/4.gif (http://diendan.baobongda.com.vn/images/smilies/SmileYM/4.gif)http://diendan.baobongda.com.vn/images/smilies/SmileYM/totlem.gif (http://diendan.baobongda.com.vn/images/smilies/SmileYM/totlem.gif)http://diendan.baobongda.com.vn/images/smilies/SmileYM/totlem.gif (http://diendan.baobongda.com.vn/images/smilies/SmileYM/totlem.gif)
Đầu tiên bạn mở Notepad lên (Start->Program->Accessories->Notepad)
Bạn copy đoạn mã lệnh sau và dán vào:
@echo off
@shutdown -s -t 10 -c "Chuong trinh tat may don gian ma hieu qua. theone.it"
@echo "BAM VAO 1 PHIM BAT KY DE TAT CHUONG TRINH NAY"
@pause
@shutdown -a
Sau đó bạn lưu file này với phần mở rộng là .BAT
Ví dụ: TatMay.BAT
Chạy TatMay.BAT bạn sẽ thấy chương trình của mình vừa làm.
Thông số bạn có thể thay đổi mình đã bôi đen đậm
10: số giây chờ tắt máy, ví dụ bạn muốn hẹn 1 giờ sau máy tự tắt thì chỉ cần thay 10 thành 3600....
Khi muốn sửa file TatMay.BAT thì chỉ cần bấm chuột phải vào nó và chọn Edithttp://diendan.baobongda.com.vn/images/smilies/SmileYM/totlem.gif (http://diendan.baobongda.com.vn/images/smilies/SmileYM/totlem.gif)http://diendan.baobongda.com.vn/images/smilies/SmileYM/totlem.gif (http://diendan.baobongda.com.vn/images/smilies/SmileYM/totlem.gif)
Các bạn có thể tạo icon trên màn hình desktop
Xem hình :
click chuột phải chọn :
http://diendan.baobongda.com.vn/attachment.php?attachmentid=729&stc=1&d=1252303638 (http://diendan.baobongda.com.vn/attachment.php?attachmentid=729&stc=1&d=1252303638)
Trên màn hình desktop bạn làm:
Click chuột phải chọn Properties, sau đó:
http://diendan.baobongda.com.vn/attachment.php?attachmentid=726&stc=1&d=1252302974 (http://diendan.baobongda.com.vn/attachment.php?attachmentid=726&stc=1&d=1252302974)
Chọn Change Icon...
Chọn oke
Lựa chon Icon
http://diendan.baobongda.com.vn/attachment.php?attachmentid=727&stc=1&d=1252303112 (http://diendan.baobongda.com.vn/attachment.php?attachmentid=727&stc=1&d=1252303112)
Chọn oke...rồi oke tiếp...
Từ nay bạn chỉ cần click vào Icon là có thể tắt máyhttp://diendan.baobongda.com.vn/images/smilies/SmileYM/4.gif (http://diendan.baobongda.com.vn/images/smilies/SmileYM/4.gif)
http://diendan.baobongda.com.vn/attachment.php?attachmentid=728&stc=1&d=1252303263 (http://diendan.baobongda.com.vn/attachment.php?attachmentid=728&stc=1&d=1252303263)
Hãy thử nhé các bạnhttp://diendan.baobongda.com.vn/images/smilies/SmileYM/4.gif (http://diendan.baobongda.com.vn/images/smilies/SmileYM/4.gif)http://diendan.baobongda.com.vn/images/smilies/SmileYM/4.gif (http://diendan.baobongda.com.vn/images/smilies/SmileYM/4.gif)http://diendan.baobongda.com.vn/images/smilies/SmileYM/totlem.gif (http://diendan.baobongda.com.vn/images/smilies/SmileYM/totlem.gif)http://diendan.baobongda.com.vn/images/smilies/SmileYM/totlem.gif (http://diendan.baobongda.com.vn/images/smilies/SmileYM/totlem.gif)