Arresto di Windows dal prompt dei comandi Causa danni?

Sommario:

Arresto di Windows dal prompt dei comandi Causa danni?
Arresto di Windows dal prompt dei comandi Causa danni?

Video: Arresto di Windows dal prompt dei comandi Causa danni?

Video: Arresto di Windows dal prompt dei comandi Causa danni?
Video: Come usare i Driver Edge di Samsung SmartThings: IL TUTORIAL! - YouTube 2024, Marzo
Anonim
La maggior parte di noi usa il menu Start per spegnere il sistema Windows, ma è possibile causare danni se si sceglie di utilizzare invece la riga di comando? Ci sono comandi particolari che potrebbero causare danni mentre altri no? Il post di Q & A di SuperUser di oggi ha la risposta alla domanda di un lettore preoccupato.
La maggior parte di noi usa il menu Start per spegnere il sistema Windows, ma è possibile causare danni se si sceglie di utilizzare invece la riga di comando? Ci sono comandi particolari che potrebbero causare danni mentre altri no? Il post di Q & A di SuperUser di oggi ha la risposta alla domanda di un lettore preoccupato.

La sessione di domande e risposte di oggi ci viene fornita per gentile concessione di SuperUser, una suddivisione di Stack Exchange, un raggruppamento di domande e risposte basato sulla comunità.

Schermata per gentile concessione di Acid Pix (Flickr).

La domanda

Lettore SuperUser FlipFloop vuole sapere se l'utilizzo di Windows CMD per spegnere un computer può causare danni:

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)?

L'uso di Windows CMD per spegnere un computer causa danni?

La risposta

Collaboratori SuperUser Marco Bonelli e LPChip hanno la risposta per noi. Primo, 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.

Seguito dalla risposta di 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.

Hai qualcosa da aggiungere alla spiegazione? Audio disattivato nei commenti. Vuoi leggere più risposte dagli altri utenti di Stack Exchange esperti di tecnologia? Controlla la discussione completa qui.

Consigliato: