Solved Shortcut shutdown in 2 ways - difference?

Burgurne

Danish Viking
Member
VIP
Local time
12:18 AM
Messages
134
Location
Denmark
Greetings.
I have been using your guide to a shutdown shortcut for some time, but now it has given me some troubbles (some programs don't shut down properly anymore for some reason).
I used this in the setting:
C:\Windows\System32\shutdown.exe -s -t 00 -f

I then found a solution like this:
C:\Windows\System32\shutdown.exe -p -f

For now it is working, but what is the difference in Windows 7 using one or the other method? :o
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
homebrewed
OS
Windows 7 Ultimate x64 retail
CPU
Core i5 3570K @ 4,4Ghz
Motherboard
MSI Z77A GD65
Memory
16Gbyte Corsair C9 1866mhz
Graphics Card(s)
MSI Lightning GTX 770
Sound Card
Auzentech
Monitor(s) Displays
BenQ 24"
Screen Resolution
1920x1200
Hard Drives
Samsung 840 EVO SSD, Samsung SSD 830 256Gbyte, Seagate 3Tbyte HDD, WD 4 Tbyte HDD.
PSU
Zahlmann 850HP
Case
Corsair Carbide 500R
Keyboard
G15 logitech
Mouse
Logitech Laser MX1000
Internet Speed
60/60
Antivirus
Bitdefender
Browser
Chrome
I don't see any practical difference at all.
The first command shuts down the computer with a delay that is explicitly set to 0 seconds.
The second command shuts down the computer with no delay. It is just a shorter form of the first.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
HP
OS
Windows 7 Pro 64 bit
CPU
Xeon W3520
Memory
8 GB
Graphics Card(s)
Nvidia Geforce 210
Nothing obvious in the parameter definition either.

/s Shutdown the computer.

/p Turn off the local computer with no time-out or warning.

/f Force running applications to close without forewarning users.
The /f parameter is implied when a value greater than 0 is
specified for the /t parameter.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Lenovo IdeaCenter 450
OS
Windows 10 Pro X64
CPU
Intel Quad Core i7-4770 @ 3.4Ghz
Memory
16.0GB PC3-12800 DDR3 SDRAM 1600 MHz
Graphics Card(s)
Intel Integrated HD Graphics
Sound Card
Realtek HD Audio
Monitor(s) Displays
HP 22" LCD
Screen Resolution
1680 x 1050
Hard Drives
250GB Samsung EVO SATA-3 SSD
2TB Seagate ST2000DM001 SATA-2
1.5TB Seagate ST3150041AS SATA
Keyboard
Dell USB
Mouse
Lenovo USB
Internet Speed
Cable via Road Runner 3MB Upload, 30MB Download
Antivirus
Windows Defender, MBAM Pro, MBAE
Browser
Seamonkey
Other Info
UEFI/GPT
PLDS DVD-RW DH16AERSH
Ok. I will then continue to use the second solution, as it seems to work just fine.
Thank you for the answers
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
homebrewed
OS
Windows 7 Ultimate x64 retail
CPU
Core i5 3570K @ 4,4Ghz
Motherboard
MSI Z77A GD65
Memory
16Gbyte Corsair C9 1866mhz
Graphics Card(s)
MSI Lightning GTX 770
Sound Card
Auzentech
Monitor(s) Displays
BenQ 24"
Screen Resolution
1920x1200
Hard Drives
Samsung 840 EVO SSD, Samsung SSD 830 256Gbyte, Seagate 3Tbyte HDD, WD 4 Tbyte HDD.
PSU
Zahlmann 850HP
Case
Corsair Carbide 500R
Keyboard
G15 logitech
Mouse
Logitech Laser MX1000
Internet Speed
60/60
Antivirus
Bitdefender
Browser
Chrome
Back
Top