Có tắt Windows từ các nguyên nhân gây ra dấu nhắc lệnh?

Mục lục:

Có tắt Windows từ các nguyên nhân gây ra dấu nhắc lệnh?
Có tắt Windows từ các nguyên nhân gây ra dấu nhắc lệnh?

Video: Có tắt Windows từ các nguyên nhân gây ra dấu nhắc lệnh?

Video: Có tắt Windows từ các nguyên nhân gây ra dấu nhắc lệnh?
Video: Điều khiển thông minh không dây ZIGBEE 4 nút bấm - YouTube 2024, Tháng tư
Anonim
Hầu hết chúng ta sử dụng Start Menu để tắt hệ thống Windows, nhưng có thể gây ra thiệt hại nếu bạn chọn sử dụng Command Line thay thế không? Có bất kỳ lệnh cụ thể có thể gây ra thiệt hại trong khi những người khác không? Bài đăng Hỏi & Đáp của SuperUser hôm nay có câu trả lời cho câu hỏi của người đọc lo lắng.
Hầu hết chúng ta sử dụng Start Menu để tắt hệ thống Windows, nhưng có thể gây ra thiệt hại nếu bạn chọn sử dụng Command Line thay thế không? Có bất kỳ lệnh cụ thể có thể gây ra thiệt hại trong khi những người khác không? Bài đăng Hỏi & Đáp của SuperUser hôm nay có câu trả lời cho câu hỏi của người đọc lo lắng.

Phiên Hỏi & Đáp hôm nay đến với chúng tôi theo lịch sự của SuperUser - một phân khu của Stack Exchange, một nhóm các trang web Hỏi & Đáp do cộng đồng điều hành.

Ảnh chụp màn hình lịch sự của Acid Pix (Flickr).

Câu hỏi

Trình đọc siêu người dùng FlipFloop muốn biết nếu sử dụng Windows CMD để tắt máy tính có thể gây ra thiệt hại:

When you launch shutdown -i to shut down a computer via the command prompt (CMD), does it damage the computer that is being turned off (either locally or remotely)?

Có sử dụng Windows CMD để tắt máy tính gây ra thiệt hại không?

Câu trả lời

Những người đóng góp của SuperUser Marco Bonelli và LPChip có câu trả lời cho chúng tôi. Đầu tiên, Marco Bonelli:

The shutdown command in Windows performs a normal shutdown/reboot/logoff on the computer (locally or remotely). If you closed all of your running programs and saved your files, there is no difference between running any shutdown command (with any parameter) or using the Windows interface via the Start Menu. The command does not damage the computer or file system in any way.

More About Running Programs

If any programs preventing the shutdown are running, Windows will automatically try to terminate them and, if that is not possible, will prompt you about it. The only problem you can have here arises with programs performing unsaved changes to files. If they provide an automatic recovery of improperly closed sessions like Microsoft Office for example, they will save their state to recover it on the next start, otherwise you will lose the unsaved data.

Tiếp theo là câu trả lời từ LPChip:

No, it will not. When you use the Start Menu to shut down a computer, it will also use the same shutdown command, just with different parameters.

The shutdown -i option was made to expose features that the Windows Start Menu does not offer without use of the Command Line. For example, shutdown -i can be used to send a shutdown command to another computer.

In the same fashion that shutdown -i will not damage your computer, neither will shutdown -s -t 0.

There is also the -f option, which is used to force a shutdown. This will not damage your Windows system, but it may cause any unsaved data (such as an unsaved open word document) to be lost.

Normally, Windows will show you a dialog of some sort like, “There is a program preventing shutdown. Do you want to cancel or continue anyway?” A timeout will eventually abort the shutdown. With the -f option, instead of showing you the message, it will assume that you wish to continue anyway and close any remaining programs.

Có cái gì để thêm vào lời giải thích? Tắt âm thanh trong các ý kiến. Bạn muốn đọc thêm câu trả lời từ những người dùng Stack Exchange có hiểu biết công nghệ khác? Xem toàn bộ chuỗi thảo luận tại đây.

Đề xuất: