Close all open windows with one click.

Page 4 of 5 FirstFirst ... 2345 LastLast
  1. Kari's Avatar
    Posts : 17,434
    Windows 10 Pro
       #31

    theoldfarter said:
    I want to try this Kari but have never done what you mention.
    See my previous post for instructions. It is extremely easy.

    You present a very typical problem: A user asks about how to do something, and other users start replying about using this or that third party tool. In most cases, like now in your case, it is totally unnecessary; Windows can do the most without any third party tools.

    Read my previous post.

    Kari
      My Computer

  2. theoldfarter's Avatar
    Posts : 141
    Windows 10 Home
    Thread Starter
       #32

    Kari said:
    See Option Three in this tutorial: Create Shortcut to App, File, Folder, Drive, or Website in Windows 10 | Tutorials

    In Option Three Step 2 in above mentioned tutorial, use the following command:

    PowerShell -command "Get-Process | Where-Object {$_.MainWindowTitle -ne ''} | stop-process"

    That's it. Does exactly what you asked for.

    Kari
    Option 3, step 4 says "4. If you like, you can Pin to Taskbar, Pin to Start, add to All apps, add to Quick Launch, assign a keyboard shortcut to, or move this shortcut to where you like for easy use."

    Does that mean I can map to a particular keyboard key?

    EDIT: Note To Self. Research first. lol. Think this is what I need to do for mapping the shortcut to a keyboard key: Assign Keyboard Shortcut to Shortcuts in Windows 10 | Tutorials

      My Computer

  3. Kari's Avatar
    Posts : 17,434
    Windows 10 Pro
       #33

    Edwin said:
    @Kari
    How do you run it without having to right click on it?
    You geeks seem to read these threads selectively, not to learn how to do things but instead, see if you could argue the offered solutions.

    Let's take a walkthrough.

    Right click on desktop, select New > Shortcut. Paste the following command:

    PowerShell -command "Get-Process | Where-Object {$_.MainWindowTitle -ne ''} | stop-process"

    Close all open windows with one click.-image.png

    Name it as you prefer.

    That's it. A new shortcut will be created, which when double clicked will close all open applications.

    It must be my broken non-native English, otherwise I cannot understand how my clear instructions earlier in this thread cannot be understood.

    Create Shortcut to App, File, Folder, Drive, or Website in Windows 10 | Tutorials

    Kari
    Last edited by Kari; 27 Nov 2018 at 23:04. Reason: Fixed some typos
      My Computer

  4. theoldfarter's Avatar
    Posts : 141
    Windows 10 Home
    Thread Starter
       #34

    Kari said:
    You geeks seem to read these threads selectively, not to learn how to do things but instead, see if you could argue the offered solutions.

    Let's take a walkthrough.

    Right click on desktop, select New > Shortcut. Paste the following command:

    PowerShell -command "Get-Process | Where-Object {$_.MainWindowTitle -ne ''} | stop-process"

    Close all open windows with one click.-image.png

    Name it as you prefer.

    That's it. A new shortcut will be created, which when double clicked will close all open applications.

    Kari
    Did that and it certainly worked. It closed 31 tabs in Chrome.lol
      My Computer

  5. Kari's Avatar
    Posts : 17,434
    Windows 10 Pro
       #35

    theoldfarter said:
    Did that and it certainly worked. It closed 31 tabs in Chrome.lol
      My Computer

  6. theoldfarter's Avatar
    Posts : 141
    Windows 10 Home
    Thread Starter
       #36

    Kari said:
    Opened these:
    a photo folder, a photo from that folder, Edge browser and a video player. The shortcut closed all except the folder that has the photos in. It does not matter too much but I am curious as to why the folder did not close.
      My Computer

  7. theoldfarter's Avatar
    Posts : 141
    Windows 10 Home
    Thread Starter
       #37

    theoldfarter said:
    Option 3, step 4 says "4. If you like, you can Pin to Taskbar, Pin to Start, add to All apps, add to Quick Launch, assign a keyboard shortcut to, or move this shortcut to where you like for easy use."

    Does that mean I can map to a particular keyboard key?

    EDIT: Note To Self. Research first. lol. Think this is what I need to do for mapping the shortcut to a keyboard key: Assign Keyboard Shortcut to Shortcuts in Windows 10 | Tutorials

    Could not map to the key with a square on it with 3 horizontal bars in it as it can't be mapped too. Letter keys & Number keys mean that I would have to use a 3 key combo. I found that using the / key on the standalone number pad works. It is a key I have never used and pressing just that one key, closes everything except the folder with photos in it, as I mentioned in post #36
      My Computer

  8. theoldfarter's Avatar
    Posts : 141
    Windows 10 Home
    Thread Starter
       #38

    zbook said:
    Is the goal to:
    a) close all open applications?
    b) hide all open applications?
    c) turn off the computer?
    d) immediately put the computer to sleep?

    Is it OK or not OK to be able to view the task bar?
    "a) close all open applications" is what I want to do.

    With not being able to see the task bar.
      My Computer

  9. f14tomcat's Avatar
    Posts : 53,175
    Multi-boot Windows 10 - RTM, RP, Beta, and Insider
       #39

    theoldfarter said:
    That is a good suggestion but what was showing before is still underneath and when the 'other' pair of eyes says show me that photo that Miss A sent, the next click of the mouse will convict me. lol
    Sounds like to need to set the Start Menu to Full Screen for this One-Key option to fully cover the screen display.

    This is not a 3rd party option. It is pure native Windows, already built in with nothing more you need to create.

    I noticed in one of your previous posts you did not want to see the Task Bar. An advantage to keeping the Task Bar visible, in your situation, is you can right-click any of the app/browser/explorer icons showing and close the app/browser/explorer window from there. Without opening them back up and showing the contents. May be handy for your purpose.

    To set the Start Menu full screen (covers everything):


    Close all open windows with one click.-2018-11-28_04h41_38.png
    Last edited by f14tomcat; 28 Nov 2018 at 04:40.
      My Computers

  10. KeithM's Avatar
    Posts : 796
    Microsoft Windows 10 Home
       #40

    PowerShell to close all Explorer windows:

    (New-Object -ComObject shell.application).windows() | %{$_.quit()}

    can be appended to Kari's command with a semicolon:

    "Get-Process | Where-Object {$_.MainWindowTitle -ne ''} | stop-process; (New-Object -ComObject shell.application).windows() | %{$_.quit()}"

    Keith
      My Computer


 
Page 4 of 5 FirstFirst ... 2345 LastLast

  Related Discussions
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 16:50.
Find Us




Windows 10 Forums