If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Rate Thread | Display Modes |
#1
|
|||
|
|||
Shutdown or Restart Windows without bickering
Shutdown or Restart Windows without bickering
Is there a way to call unconditionally for a quick Windows restart? When I do Restart or Shutdown, it takes a while, sometimes quite a while, and then gives a list of programs that aren't ready to be stopped yet, and asks me if I want to stop anyhow, or Cancel and go back and do something. I've had a PC for a long time, and I never leave a edited file unsaved. In addition on the list are programs that don't save anything like Task Manager, USB Saftety Remove, RadioMaximius, adn maybe one could count Firefox. If I know I'm going to chooose Stop anyhow, is there a way to say that in advance, so I don't have to wait until the list shows up. So I can leave my desk and let the computer do its thing. |
Ads |
#2
|
|||
|
|||
Shutdown or Restart Windows without bickering
On 2020-04-03 3:14 p.m., micky wrote:
Shutdown or Restart Windows without bickering Is there a way to call unconditionally for a quick Windows restart? When I do Restart or Shutdown, it takes a while, sometimes quite a while, and then gives a list of programs that aren't ready to be stopped yet, and asks me if I want to stop anyhow, or Cancel and go back and do something. I've had a PC for a long time, and I never leave a edited file unsaved. In addition on the list are programs that don't save anything like Task Manager, USB Saftety Remove, RadioMaximius, adn maybe one could count Firefox. If I know I'm going to chooose Stop anyhow, is there a way to say that in advance, so I don't have to wait until the list shows up. So I can leave my desk and let the computer do its thing. Not sure how you do things, But my practice is to shut down any program when I am finished with it, Then when I do a shutdown or restart all programs are dead and do not slow things up. Also I deactivate all unnecessary startup programs leaving only the absolutely required ones in startup. Rene |
#3
|
|||
|
|||
Shutdown or Restart Windows without bickering
On 4/3/2020 4:14 PM, micky wrote:
Shutdown or Restart Windows without bickering Is there a way to call unconditionally for a quick Windows restart? When I do Restart or Shutdown, it takes a while, sometimes quite a while, and then gives a list of programs that aren't ready to be stopped yet, and asks me if I want to stop anyhow, or Cancel and go back and do something. I've had a PC for a long time, and I never leave a edited file unsaved. In addition on the list are programs that don't save anything like Task Manager, USB Saftety Remove, RadioMaximius, adn maybe one could count Firefox. If I know I'm going to chooose Stop anyhow, is there a way to say that in advance, so I don't have to wait until the list shows up. So I can leave my desk and let the computer do its thing. make a batch (using your program names) and add icon on desktop. SET "Slow1=Firefox Thunderbird GoogleDesktop Streets" SET "Slow2=iexplore Chrome Luna Everything AgentRansack" SET "Slow3=Word Excel FileSeek WinDirStat taskmgr" SET "_Force=ashsnap Volumouse RoboTaskBarIcon" :: Request (R) close by TASKKILL SETLOCAL ENABLEDELAYEDEXPANSION FOR %%P in (%Slow1% %Slow2% %Slow3% % ) DO ( TASKLIST | FIND /I "%%P.exe" NUL IF NOT ERRORLEVEL 1 (TASKKILL /IM "%%P.exe" /T NUL ) :: Force (F) close by TASKKILL remaining programs SETLOCAL ENABLEDELAYEDEXPANSION FOR %%P in (%Slow1% %Slow2% %Slow3% _Force%) DO ( TASKLIST | FIND /I "%%P.exe" NUL IF NOT ERRORLEVEL 1 (TASKKILL /IM "%%P.exe" /T /F NUL) ) add shutdown/restart command from https://www.computerhope.com/shutdown.htm Note could do all TASKKILL with "Force" if desired. -- Zaidy036 |
#4
|
|||
|
|||
Shutdown or Restart Windows without bickering
On 03.04.20 22:14, micky wrote:
Shutdown or Restart Windows without bickering Is there a way to call unconditionally for a quick Windows restart? When I do Restart or Shutdown, it takes a while, sometimes quite a while, and then gives a list of programs that aren't ready to be stopped yet, and asks me if I want to stop anyhow, or Cancel and go back and do something. I've had a PC for a long time, and I never leave a edited file unsaved. In addition on the list are programs that don't save anything like Task Manager, USB Saftety Remove, RadioMaximius, adn maybe one could count Firefox. If I know I'm going to chooose Stop anyhow, is there a way to say that in advance, so I don't have to wait until the list shows up. So I can leave my desk and let the computer do its thing. shutdown.exe -s -f -t 04 Use a shortcut pointing to that. |
#5
|
|||
|
|||
Shutdown or Restart Windows without bickering
In alt.comp.os.windows-10, on Fri, 03 Apr 2020 23:39:57 +0200, Sjouke
Burry wrote: On 03.04.20 22:14, micky wrote: Shutdown or Restart Windows without bickering Is there a way to call unconditionally for a quick Windows restart? When I do Restart or Shutdown, it takes a while, sometimes quite a while, and then gives a list of programs that aren't ready to be stopped yet, and asks me if I want to stop anyhow, or Cancel and go back and do something. I've had a PC for a long time, and I never leave an edited file unsaved. In addition on the list are programs that don't save anything like Task Manager, USB Saftety Remove, RadioMaximius, and maybe one could count Firefox. If I know I'm going to chooose Stop anyhow, is there a way to say that in advance, so I don't have to wait until the list shows up. So I can leave my desk and let the computer do its thing. shutdown.exe -s -f -t 04 Use a shortcut pointing to that. Thanks, and thanks Zaidy. Interesting note about the time parm: "Set the time-out period before shutdown to xxx seconds. The valid range is 0-315360000 (10 years), with a default of 30. " I'll have to try 315 million some day. I'm glad I thought to ask this, because it's been annoying me for months. Yours is simpler Sjouke and I've got it ready to go. If I have trouble, I'll try Zaidy's. |
#6
|
|||
|
|||
Shutdown or Restart Windows without bickering
In alt.comp.os.windows-10, on Fri, 3 Apr 2020 15:39:50 -0500, Rene
Lamontagne wrote: On 2020-04-03 3:14 p.m., micky wrote: Shutdown or Restart Windows without bickering Is there a way to call unconditionally for a quick Windows restart? When I do Restart or Shutdown, it takes a while, sometimes quite a while, and then gives a list of programs that aren't ready to be stopped yet, and asks me if I want to stop anyhow, or Cancel and go back and do something. I've had a PC for a long time, and I never leave a edited file unsaved. In addition on the list are programs that don't save anything like Task Manager, USB Saftety Remove, RadioMaximius, adn maybe one could count Firefox. If I know I'm going to chooose Stop anyhow, is there a way to say that in advance, so I don't have to wait until the list shows up. So I can leave my desk and let the computer do its thing. Not sure how you do things, But my practice is to shut down any program when I am finished with it, I usually don't know when I'm finished, except for limited use programs like Everything, Volume Mixer, or Sound Settings. USB Safely Remove is supposed to run all the time. I don't know what about it puts it on the list. Of course the list does get shorter if I wait, most programs drop off, but there are a few programs that never drop off. A couple times I've done Restart, seen the Desktop disappear,and hoped everything would drop off the list after enough time, and when I come back an hour later, the desktop has reappeared, but apparently it had not really restarted. A couple startup programs like AutoHotKey and stunnel were not running. OTOH, task manager was running, and I don't know who started it. These times were the last straw that made me ask here. I'm pretty sure this won't happen now, with forced shutdown. Sometimes I close programs after I've clicked on Shutdown or Restart, and that seems to speed things up, but if I didn't have to wait for the list I refer to above, it woudn't matter if it sped things up, because I could just get up and leave the room. I'm hoping now I can just start the bat file Sjouke and Zaidy recommended. Then when I do a shutdown or restart all programs are dead and do not slow things up. Also I deactivate all unnecessary startup programs leaving only the absolutely required ones in startup. None of those are ever on the list, though I'm sure each uses a little bit of time when shutting down. I don't know if they're shut down before the list appears or after, probably after, but if before, they do add to the annoying wait I've endured, until tonight! Rene |
#7
|
|||
|
|||
Shutdown or Restart Windows without bickering
In alt.comp.os.windows-10, on Fri, 03 Apr 2020 23:39:57 +0200, Sjouke
Burry wrote: On 03.04.20 22:14, micky wrote: Shutdown or Restart Windows without bickering Is there a way to call unconditionally for a quick Windows restart? When I do Restart or Shutdown, it takes a while, sometimes quite a while, and then gives a list of programs that aren't ready to be stopped yet, and asks me if I want to stop anyhow, or Cancel and go back and do something. I've had a PC for a long time, and I never leave a edited file unsaved. In addition on the list are programs that don't save anything like Task Manager, USB Saftety Remove, RadioMaximius, adn maybe one could count Firefox. If I know I'm going to chooose Stop anyhow, is there a way to say that in advance, so I don't have to wait until the list shows up. So I can leave my desk and let the computer do its thing. shutdown.exe -s -f -t 04 Use a shortcut pointing to that. This is still much better than turning off the power, right? It's equivalent to waiting until the list appears and choosing Shutdown Anyhow?? |
#8
|
|||
|
|||
Shutdown or Restart Windows without bickering
micky wrote:
Shutdown or Restart Windows without bickering Is there a way to call unconditionally for a quick Windows restart? When I do Restart or Shutdown, it takes a while, sometimes quite a while, and then gives a list of programs that aren't ready to be stopped yet, and asks me if I want to stop anyhow, or Cancel and go back and do something. I've had a PC for a long time, and I never leave a edited file unsaved. In addition on the list are programs that don't save anything like Task Manager, USB Saftety Remove, RadioMaximius, adn maybe one could count Firefox. If I know I'm going to chooose Stop anyhow, is there a way to say that in advance, so I don't have to wait until the list shows up. So I can leave my desk and let the computer do its thing. I you slam the OS without first allowing processes to gracefully exit, those with open files cannot properly close those files resulting in corruption of either the file(s), the file system, or both. While NTFS with its journaling system (which is NOT and undo function to restore the prior state of files), if you are using it, tries to repair such catastrophic file events, but it may not. You, and whatever process you are using to open a file to edit it, is not the only process that is opening and modifying files. Windows will wait some maximum time waiting for a process to exit, and forcibly terminate it if the process doesn't exit in that time. It is configurable in the registry, but I'd have to do an online search to find it again. Instead of using the GUI shutdown controls, you could create a shortcut that runs the shutdown.exe program. It has arguments to force a shutdown of the OS. To get help on using it, run "shutdown.exe /?". You'll probably want to look at the /f and /p switches. I'd have to test if this eliminates just the forewarning to the user about processes that are pending their exit and kills those processes, or if it just eliminates the forewarning, but still waits for the processes to gracefully exit. Of course, the catastrophic shutdown of which you ask can be achieved just by holding down the Power button for about 4 seconds. That will remove power from the box. Why are you shutting Windows down at all? Are you going to transport the computer to elsewhere which means having to unplug a desktop from the wall outlet (or from a UPS)? If it's a laptop, just close its lid. Leave it on 24x7 and use a low-power mode after it's been idle awhile. |
#9
|
|||
|
|||
Shutdown or Restart Windows without bickering
On 4/4/2020 1:25 AM, VanguardLH wrote:
micky wrote: Shutdown or Restart Windows without bickering Is there a way to call unconditionally for a quick Windows restart? When I do Restart or Shutdown, it takes a while, sometimes quite a while, and then gives a list of programs that aren't ready to be stopped yet, and asks me if I want to stop anyhow, or Cancel and go back and do something. I've had a PC for a long time, and I never leave a edited file unsaved. In addition on the list are programs that don't save anything like Task Manager, USB Saftety Remove, RadioMaximius, adn maybe one could count Firefox. If I know I'm going to chooose Stop anyhow, is there a way to say that in advance, so I don't have to wait until the list shows up. So I can leave my desk and let the computer do its thing. I you slam the OS without first allowing processes to gracefully exit, those with open files cannot properly close those files resulting in corruption of either the file(s), the file system, or both. While NTFS with its journaling system (which is NOT and undo function to restore the prior state of files), if you are using it, tries to repair such catastrophic file events, but it may not. You, and whatever process you are using to open a file to edit it, is not the only process that is opening and modifying files. Windows will wait some maximum time waiting for a process to exit, and forcibly terminate it if the process doesn't exit in that time. It is configurable in the registry, but I'd have to do an online search to find it again. Instead of using the GUI shutdown controls, you could create a shortcut that runs the shutdown.exe program. It has arguments to force a shutdown of the OS. To get help on using it, run "shutdown.exe /?". You'll probably want to look at the /f and /p switches. I'd have to test if this eliminates just the forewarning to the user about processes that are pending their exit and kills those processes, or if it just eliminates the forewarning, but still waits for the processes to gracefully exit. Of course, the catastrophic shutdown of which you ask can be achieved just by holding down the Power button for about 4 seconds. That will remove power from the box. Why are you shutting Windows down at all? Are you going to transport the computer to elsewhere which means having to unplug a desktop from the wall outlet (or from a UPS)? If it's a laptop, just close its lid. Leave it on 24x7 and use a low-power mode after it's been idle awhile. As other have said, a shortcut with C:\Windows\System32\shutdown.exe -s -t 03 This will do the shutdown nicely. I have that icon in the upper left corner of the screen on all my computers. I have it also on my windows 7 machines too. Also you can set the power button to do the powerdown thing, so all you have to do is mometarily press the power button and the machine goes through the regular powerdown sequence. Type in "power and sleep setting" in the start search bar. |
#10
|
|||
|
|||
Shutdown or Restart Windows without bickering
actodesco wrote:
VanguardLH wrote: micky wrote: Shutdown or Restart Windows without bickering Is there a way to call unconditionally for a quick Windows restart? When I do Restart or Shutdown, it takes a while, sometimes quite a while, and then gives a list of programs that aren't ready to be stopped yet, and asks me if I want to stop anyhow, or Cancel and go back and do something. Instead of using the GUI shutdown controls, you could create a shortcut that runs the shutdown.exe program. It has arguments to force a shutdown of the OS. To get help on using it, run "shutdown.exe /?". You'll probably want to look at the /f and /p switches. As other have said, a shortcut with C:\Windows\System32\shutdown.exe -s -t 03 This will do the shutdown nicely. Your requirement was to NOT be bothered with prompts about processes that are pending exit. -s or /s just says what action to perform (shutdown). That won't eliminate the prompts about pending exits of processes. -t or /t will delay the shutdown for xxx seconds. You said you wanted to avoid any delays. To eliminate the prompts and delays, as requested, try: -f or /f Force running processes to exit with forewarning. Also implied by using /t switch, but that still adds delay (unless you use /t 0 but you could just use /f). -p or /p Turn off the computer with no timeout or prompt. Per your original request, might be all you need is the /p switch. You mentioned Restart. Then you mentioned Restart. Which one do you want? For a restart, add the /r switch. Also you can set the power button to do the powerdown thing, so all you have to do is mometarily press the power button and the machine goes through the regular powerdown sequence. The problem with defining the soft Power switch to do a shutdown is the same one you asked to avoid: getting prompts on pending exits of processes. Whether you use the Start menu, shutdown.exe without the force/no-prompt switches, or define the Power button to do a shutdown, those will still do the same shutdown which means you may get prompted. |
#11
|
|||
|
|||
Shutdown or Restart Windows without bickering
Shortcuts on my desktop...
"D:\software\system\shutdown windows\RestartWindows.bat" "D:\software\system\shutdown windows\ShutdownWindows.bat" Batch files in that folder... REM properly shut down a special process first taskkill /im natspeak.exe /t /f shutdown /r /t 10 REM properly shut down a special process first taskkill /im natspeak.exe /t /f shutdown /s /t 10 After years of use, I still enjoy forcing Windows to restart or shutdown that way. |
#12
|
|||
|
|||
Shutdown or Restart Windows without bickering
micky wrote:
Sjouke Burry wrote: micky wrote: Shutdown or Restart Windows without bickering shutdown.exe -s -f -t 04 Use a shortcut pointing to that. This is still much better than turning off the power, right? It's equivalent to waiting until the list appears and choosing Shutdown Anyhow?? Do not question your superiors. In fact, it performs better than using the Start button. Guaranteed, or double your money back. |
#13
|
|||
|
|||
Shutdown or Restart Windows without bickering
The given instruction works perfectly. No prompts.
No corrupt files. Just shut down without asking. I have been using it for roughly 10 years. It's a blast to know Windows is doing what you told it to do. This troll has no idea what it's talking about... -- VanguardLH V nguard.LH wrote: Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.unit0.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: VanguardLH V nguard.LH Newsgroups: alt.comp.os.windows-10 Subject: Shutdown or Restart Windows without bickering Date: Sat, 4 Apr 2020 15:25:52 -0500 Organization: Usenet Elder Lines: 54 Message-ID: 1gwyvzn6ven8f.dlg v.nguard.lh References: 5u5f8f55j3i2jnjeq1qqofkat2d31ksr83 4ax.com 1m1x0752q2yzf.dlg v.nguard.lh r6agb0$3as$1 dont-email.me Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: individual.net qrZfbU2+wlAXm8RBkglbIgmsFYTcuMd3fAkR9poFbSpKi+VFQ8 Keywords: VanguardLH VLH811 Cancel-Lock: sha1:0Rmq/5z2/9FzP+iBlM8wDYGK8kM= User-Agent: 40tude_Dialog/2.0.15.41 Xref: reader01.eternal-september.org alt.comp.os.windows-10:115469 actodesco actodesco2 gmail.com wrote: VanguardLH wrote: micky NONONOaddressee rushpost.com wrote: Shutdown or Restart Windows without bickering Is there a way to call unconditionally for a quick Windows restart? When I do Restart or Shutdown, it takes a while, sometimes quite a while, and then gives a list of programs that aren't ready to be stopped yet, and asks me if I want to stop anyhow, or Cancel and go back and do something. Instead of using the GUI shutdown controls, you could create a shortcut that runs the shutdown.exe program. It has arguments to force a shutdown of the OS. To get help on using it, run "shutdown.exe /?". You'll probably want to look at the /f and /p switches. As other have said, a shortcut with C:\Windows\System32\shutdown.exe -s -t 03 This will do the shutdown nicely. Your requirement was to NOT be bothered with prompts about processes that are pending exit. -s or /s just says what action to perform (shutdown). That won't eliminate the prompts about pending exits of processes. -t or /t will delay the shutdown for xxx seconds. You said you wanted to avoid any delays. To eliminate the prompts and delays, as requested, try: -f or /f Force running processes to exit with forewarning. Also implied by using /t switch, but that still adds delay (unless you use /t 0 but you could just use /f). -p or /p Turn off the computer with no timeout or prompt. Per your original request, might be all you need is the /p switch. You mentioned Restart. Then you mentioned Restart. Which one do you want? For a restart, add the /r switch. Also you can set the power button to do the powerdown thing, so all you have to do is mometarily press the power button and the machine goes through the regular powerdown sequence. The problem with defining the soft Power switch to do a shutdown is the same one you asked to avoid: getting prompts on pending exits of processes. Whether you use the Start menu, shutdown.exe without the force/no-prompt switches, or define the Power button to do a shutdown, those will still do the same shutdown which means you may get prompted. |
#14
|
|||
|
|||
Shutdown or Restart Windows without bickering
In response to what John Doe wrote :
Shortcuts on my desktop... Regarding... o *Shutdown or Restart Windows without bickering* https://alt.comp.os.windows-10.narkive.com/c1Eev1tw/shutdown-or-restart-windows-without-bickering Thanks for those two useful shortcuts, which I'll add to the archives: o *What useful Windows shortcuts would you like to share with users*? https://groups.google.com/d/msg/microsoft.public.windowsxp.general/80ZHKKFom0c/RN3V0Av6BQAJ Where one option is to add your new shortcut to your start run commands: If you want easy "start run" access to your new shortcuts: o *Quick tutorial for creating easy (Start Run) access to lookup files on Windows* https://groups.google.com/d/msg/microsoft.public.windowsxp.general/5LxGOixwwWs/q8wVoJ3mBAAJ Where there are already a few hundred start run commands to choose from: o *Over 250 Start Run commands (please improve)* https://groups.google.com/d/msg/microsoft.public.windowsxp.general/cc1lGn3ty0E/DH_FxVCjAAAJ Bear in mind there's sometimes a need to _combine_ commands in shortcuts: o What syntax combines 2 commands into a single shortcut TARGET line? https://groups.google.com/forum/#!topic/alt.msdos.batch/azQbz6D_v0Y If you want your new shortcut icon to one of hundreds already available: o *What Windows 10 default files contain lots of useful icons for shortcuts to be set to?* https://groups.google.com/d/msg/microsoft.public.windowsxp.general/-1nQdP8E_Yc/VILrouTSBAAJ Or, better yet, if you want custom icons for your new batch file shortcuts: o *Tutorial for creating custom Windows icons from screenshots using only Irfanview freeware* https://groups.google.com/d/msg/microsoft.public.windowsxp.general/xm6aHzaC-D8/uD1PLfk6DAAJ If you want easy access and ease-of-use options for your new shortcuts: o *Please follow this cut-and-paste tutorial to get batch command shortcuts working perfectly on Windows* https://groups.google.com/d/msg/microsoft.public.windowsxp.general/1PzeGP4KMTU/tTbcd9zxAAAJ Remember, there's often the need for a special trick (described above) to get some of these desktop shortcuts to easily slide onto your taskbar, which is just another part of an efficient Windows menu system: o *Tutorial for setting up a well-organized consistent efficient Windows menu system* https://groups.google.com/d/msg/microsoft.public.windowsxp.general/eWU-jOkFRtU/ckLcKqDRBQAJ For example, here's a tiny snippet from that canonical thread: =============================================== shutdown.lnk Target=%windir%\System32\SlideToShutDown.exe ICONFROM: %SystemRoot%\System32\SHELL32.dll KEYBOARD: Shortcut Properties Shortcut key (just press "s") which will make the keyboard key Ctrl + Alt + S NOTE: There are lots of ways to shut down; this is only one. =============================================== reboot.lnk Target=C:\Windows\System32\shutdown.exe /r /f /t 5 /c "Reboot in 5 seconds!" ICON: %SystemRoot%\System32\cmmon32.exe KEYBOARD: Shortcut Properties Shortcut key (just press "r") which will make the keyboard key Ctrl + Alt + R =============================================== abortshutdown.lnk Target=%Windir%\System32\shutdown.exe -a ICON: C:\Windows\System32\Dxpserver.exe KEYBOARD: Shortcut Properties Shortcut key (just press "a") which will make the keyboard key Ctrl + Alt + Del NOTE: There are lots of ways to abort; this is only one. =============================================== etc. -- Usenet is a wonderful public permanent archive of useful tech discussions: |
#15
|
|||
|
|||
Shutdown or Restart Windows without bickering
On Sun, 05 Apr 2020 20:01:12 GMT, Arlen Holder
wrote: In response to what John Doe wrote : Shortcuts on my desktop... Regarding... o *Shutdown or Restart Windows without bickering* https://alt.comp.os.windows-10.narki...utdown-or-rest art-windows-without-bickering Thanks; I've finally added icons to my shutdown shortcuts. -- Bah, and indeed, Humbug. |
Thread Tools | |
Display Modes | Rate This Thread |
|
|