2024 Forfatter: Peter John Melton | [email protected]. Sidst ændret: 2023-12-16 04:48
Dagens Spørgsmål & Svar session kommer til os med venlig hilsen af SuperUser-en underafdeling af Stack Exchange, en community-driven gruppe af Q & A-websteder.
Screenshot courtesy of Acid Pix (Flickr).
Spørgsmålet
SuperUser-læser FlipFloop ønsker at vide, om man bruger Windows CMD til at lukke en computer, kan forårsage skade:
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)?
Gør det at bruge Windows CMD til at lukke en computer til skade?
Svaret
SuperUser bidragsydere Marco Bonelli og LPChip har svaret for os. Først op, 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.
Efterfulgt af svaret fra 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.
Har du noget at tilføje til forklaringen? Ik anyik notk not notikkkkkk not not noting notkfikik not any anyik any for anyik notikikinging not Vil du læse flere svar fra andre tech-savvy Stack Exchange brugere? Tjek den fulde diskussionstråd her.
Anbefalede:
Sådan stopper du Twitter højdepunkter fra at skade dig med uafhængige meddelelser
Sociale netværk forsøger altid at få dig til at "engagere" mere med deres service, og for nylig har Twitter introduceret et nyt trick: Highlights notifications.
Gør S-videokabler forårsaget af kræft?
Afhængigt af hvor du bor, kan du modtage en sundhedsadvarsel, når du køber nogle hardwarekomponenter online til din computer. Er det noget du burde være bekymret for eller ej? Dagens SuperUser Q & A post diskuterer en sådan hændelse for at hjælpe med at besvare en nysgerrig læsers spørgsmål.
Se Googles startside kommer ned ned
Google Gravity er et websted, hvor du kan se Googles startside komme tumbling ned, under påvirkning af tyngdekraften!
Sådan stopper eller stopper du synkronisering i OneDrive i Windows 10
Denne vejledning viser dig, hvordan du hurtigt pause synkronisering og genoptag synkronisering i OneDrive på Windows 10 Anniversary Update, hvis du føler det nødvendigt at gøre det.
Sundhedsmæssige problemer forårsaget af Smartphones overbrug
Mange sundhedsproblemer kommer med brug af smartphones. Artiklen beskriver et par sådanne problemer som følge af mobiltelefonbrug.