Page 3 of 3 FirstFirst 123
  1.    26 Sep 2017 #20
    Join Date : Jan 2014
    Posts : 1,393
    Windows 10 Pro (32-bit) 16299.15

    Quote Originally Posted by Kari View Post
    Some examples:

    Shutdown in 30 seconds, using either default delay or setting delay manually to 30 seconds:

    shutdown /s

    shutdown /s /t 30

    Restarting to UEFI settings immediately (no delay):

    shutdown /r /fw /t 0
    Slightly off-topic but in my experience there is a significant difference between
    /t 0
    and
    /t 1
    (or any other number greater than zero).

    You might think the only difference is one second, but my observation suggests that /t 0 does a "graceful" shutdown which waits for apps to close themselves, and allows you to cancel and go back and save unsaved files if the app doesn't close naturally.

    Whereas /t 1 is more brutal - it just shuts everything down after 1 second and kills apps regardless.

    At least that's what I have observed - not sure where this might be documented.
      My ComputerSystem Spec
  2.    26 Sep 2017 #21
    Join Date : Oct 2013
    Texas
    Posts : 10,789
    Windows 10 Pro X64

    Great stuff
      My ComputerSystem Spec
  3.    27 Sep 2017 #22
    Join Date : Oct 2013
    A Finnish expat in Germany
    Posts : 12,971
    Windows 10 Pro
    Thread Starter

    Quote Originally Posted by DavidY View Post
    You might think the only difference is one second, but my observation suggests that /t 0 does a "graceful" shutdown which waits for apps to close themselves, and allows you to cancel and go back and save unsaved files if the app doesn't close naturally.
    Whereas /t 1 is more brutal - it just shuts everything down after 1 second and kills apps regardless.
    You are on the right track with that, David.

    Again a not too well documented thing about shutdown command is the difference between time delay 0 seconds (/t 0, immediately) and time delay greater than 0 (/t X, where X is greater or equal than 1).

    If delay 0 is used when there are applications open, Windows tells user that there are running applications letting user to decide if shutdown command should be performed anyway, closing all running apps discarding unsaved changes, or if user wants to cancel the shut down process.

    Example: Notepad and Command Prompt open when running command shutdown /s /t 0:
    Name:  image.png
Views: 48
Size:  65.5 KB

    Instead of just closing Notepad and Command prompt and shutting down, Windows checks what user wants to do:
    Click image for larger version. 

Name:	image.png 
Views:	6 
Size:	111.9 KB 
ID:	155213

    However, if in exactly the same scenario we change the delay to 1 second (or more), shutdown command forcefully closes Notepad and Command Prompt after given delay and shuts down without any warnings about open applications.

    Short: using delay 0 you can prevent accidentally shutting down when you have unsaved changes in any running application, whereas using delay 1 or greater all unsaved changes will be discarded and PC forced to shut down.

    If you want to, you can use the /f (force) switch even with delay 0 to force Windows to close all apps discarding unsaved changes:

    shutdown /s /f /t 0


    Quote Originally Posted by Dude View Post
    Great stuff
    Thanks Dude!
      My ComputerSystem Spec

 
Page 3 of 3 FirstFirst 123


Similar Threads
Tutorial Category
Solved Cannot boot into UEFI BIOS or Boot Menu
Belarc reports UEFI: American Megatrends Inc. P11-B2 Operating System: Windows 10 Home (x64) Version 1511 (build 10586.494) Installed: 4/27/2016 5:58:22 AM Servicing Branch: Current Branch (CB) Boot Mode: UEFI with successful Secure Boot. ...
Performance & Maintenance
Solved Should I enable UEFI Boot in BIOS before Win 10 install?
I built a computer back in 2009 with an Intel DP55KG motherboard running Windows 7. So, I am getting ready for a fresh Windows 10 install and I noticed that back in 2009 I never enabled the UEFI boot mode. Would it be recommended to enable it this...
Installation and Upgrade
Ubuntu Boot option still available in UEFI BIOS after Dual Boot
Recently I played around with dual booting Linux Mint on my system. I decided that I would delete it for the present as I have other things to focus on. However, after deleting partitions and fixing my MBR to only boot windows my UEFI BIOS still...
General Support
Solved UEFI BIOS settings to prepare for Windows 10 Installation
Is it advisable to set the UEFI BIOS (Asus ROG Hero Maximus VI motherboard) to a factory default settings before installing Windows 10? Or should I at least set the memory "XMP" profile? Thanks!
Installation and Upgrade
Dual boot 10 & 7 BIOS/UEFI possible issues
I dual boot to 2 different windows 7 installs. I have my primary for day to day stuff and the second install is for my DAW. I don't want to update the DAW to 10 because of the issues it may cause. I do want to update my primary install to 10. Can...
Installation and Upgrade
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 10:04.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums