any way to add shortcut icon for sleep and shutdown?


  1. Posts : 61
    win 7 pro 64
       #1

    any way to add shortcut icon for sleep and shutdown?


    I think the start menu way of putting pc to sleep or shutdown is annoying. was wondering if I could add desktop shortcuts to activate one or the other?
      My Computer


  2. Posts : 72,131
    64-bit Windows 11 Pro for Workstations
       #2

    Hello,

    Yes, you sure can create and use desktop icons for these. The tutorials below can help show you how to.

    Shut Down Computer Shortcut - Create

    Sleep Shortcut - Create
    Last edited by Brink; 29 Mar 2024 at 13:01.
      My Computer


  3. Posts : 61
    win 7 pro 64
    Thread Starter
       #3

    thanks for the quick reply. alt f4 doesnt work since its a quick setting for mute audio I set.

    downloaded both files. the sleep button.vbs shuts down pc. it doesnt goto sleep. but the shutdown window(that gives options) doesnt help me. its the same thing as me pressing start and choosing what I need. I want a double click icon and be done with it. I really dislike software where theres an excess of clicks. its inneficient UI.

    is there a KB shortcut for sleep? at least i have a shutdown icon I can double click. thank you. does it also work in w10, I want to use with my other offline pc.
      My Computer


  4. Posts : 72,131
    64-bit Windows 11 Pro for Workstations
       #4

    As a test, try creating a Sleep shortcut using the command below instead.

    Sleep Computer in Windows 11 Tutorial | Windows 11 Forum

    Code:
    powershell.exe -Command "& {Add-Type -Assembly System.Windows.Forms;[System.Windows.Forms.Application]::SetSuspendState('Suspend', $false, $false)}"
      My Computer


  5. Posts : 61
    win 7 pro 64
    Thread Starter
       #5

    YES!! added that line to command prompt and it put it to sleep! awesome!

    how can I make a shortcut of it?
      My Computer


  6. Posts : 72,131
    64-bit Windows 11 Pro for Workstations
       #6

    Great news. You can use the same command as the target location when creating the shortcut.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 06:48.
Find Us