Windows 10: A file that puts the computer to sleep when clicked?

Discus and support A file that puts the computer to sleep when clicked? in Windows 10 Customization to solve the problem; I am trying to make a desktop icon which when clicked puts the computer to sleep. I tried searching a lot but didn't find anything.Maybe a batch file... Discussion in 'Windows 10 Customization' started by DahamSirimanna, Jan 15, 2023.

  1. A file that puts the computer to sleep when clicked?


    I am trying to make a desktop icon which when clicked puts the computer to sleep. I tried searching a lot but didn't find anything.Maybe a batch file would work by changing the icon of a shortcut. But I can't find a command that puts windows 10 to sleep.The code I found hibernates it.@echo off echo %time% timeout /T 1 && rundll32.exe powrprof.dll,SetSuspendState 0,1,0 echo %time% I need something like this on the desktop A way to pin this to the taskbar would also be helpful!

    :)
     
    DahamSirimanna, Jan 15, 2023
    #1
  2. dlcooper Win User

    Difficulty putting computer to sleep

    Gosh, Dell, the tutorial is certainly comprehensive. Thanks.

    In trying the tutorial suggestions I get the same result, coming out of sleep, but also a dialog box which says "Signal not rec'd. Check video cable" My video cable is secure so I don't know how to respond further. Guess I'll just muddle along, letting the (unused) computer time out, at least killing the monitor.

    Below is a Great Informative tutorial from here on the TenForums detailing sleep mode. Click the link.

    How to Put Your Computer to Sleep in Windows 10[/QUOTE]
     
    dlcooper, Jan 15, 2023
    #2
  3. Nikhar_K Win User
    Computer wakes from sleep immediately after putting to sleep

    Hi,

    Thank you for writing to Microsoft Community Forums.

    I understand that the computer wakes up immediately after putting to sleep.

    There could be several reasons for the computer not going to sleep mode. To determine which device is causing this, we can run a simple command and check the reason why the computer woke up from sleep mode. To do this refer the steps mentioned below:

    1. Type command prompt in the
      search bar
      on the Taskbar.
    2. Right click on the command prompt icon and select
      Run as administrator.
    3. Now, paste the following command and hit Enter:
      powercfg lastwake.
    4. Share the results of the command.

    The above command should let us know the device that is preventing the computer going into sleep mode.

    Let us know the results and we will help you further.

    Regards,

    Nikhar Khare

    Microsoft Community - Moderator
     
    Nikhar_K, Jan 15, 2023
    #3
  4. Yolvi Ell Win User

    A file that puts the computer to sleep when clicked?

    iTunes stops playing when the computer go to sleep

    Hi Ross,

    Sleep mode is designed to stop all actions on a computer as it puts the device to a low-power state. Since you want to continue using a program even while your computer is locked, we suggest turning off Sleep mode by following these steps:

    • Click Start.
    • Go to Settings.
    • Click System.
    • Choose Power & Sleep from the left pane.
    • Under Sleep, choose Never.

    A file that puts the computer to sleep when clicked? a56ef514-cf53-4631-8917-a239182dc84a.png


    Let us know if you have any other concerns about your computer.
     
    Yolvi Ell, Jan 15, 2023
    #4
Thema:

A file that puts the computer to sleep when clicked?

Loading...
  1. A file that puts the computer to sleep when clicked? - Similar Threads - file puts computer

  2. A file that puts the computer to sleep when clicked?

    in Windows 10 Gaming
    A file that puts the computer to sleep when clicked?: I am trying to make a desktop icon which when clicked puts the computer to sleep. I tried searching a lot but didn't find anything.Maybe a batch file would work by changing the icon of a shortcut. But I can't find a command that puts windows 10 to sleep.The code I found...
  3. A file that puts the computer to sleep when clicked?

    in Windows 10 Software and Apps
    A file that puts the computer to sleep when clicked?: I am trying to make a desktop icon which when clicked puts the computer to sleep. I tried searching a lot but didn't find anything.Maybe a batch file would work by changing the icon of a shortcut. But I can't find a command that puts windows 10 to sleep.The code I found...
  4. Computer crashing when put to sleep

    in Windows 10 Gaming
    Computer crashing when put to sleep: Hi,Minidump: https://www.dropbox.com/s/0pdz2u69zg3amjv/121022-69343-01.zip?dl=0Computer occasionally crashes for no reason, but recently always when asleep.Motherboard: H110M-ACPU: Intel i5-6500Windows 10 Home 64bitPlease let me know if I can provide any other...
  5. Computer crashing when put to sleep

    in Windows 10 Software and Apps
    Computer crashing when put to sleep: Hi,Minidump: https://www.dropbox.com/s/0pdz2u69zg3amjv/121022-69343-01.zip?dl=0Computer occasionally crashes for no reason, but recently always when asleep.Motherboard: H110M-ACPU: Intel i5-6500Windows 10 Home 64bitPlease let me know if I can provide any other...
  6. Computer crashing when put to sleep

    in Windows 10 Drivers and Hardware
    Computer crashing when put to sleep: Hi,Minidump: https://www.dropbox.com/s/0pdz2u69zg3amjv/121022-69343-01.zip?dl=0Computer occasionally crashes for no reason, but recently always when asleep.Motherboard: H110M-ACPU: Intel i5-6500Windows 10 Home 64bitPlease let me know if I can provide any other...
  7. Computer crashes when I put it to sleep

    in Windows 10 Gaming
    Computer crashes when I put it to sleep: So I usually put my pc to sleep using the win+x menu, but lately, I've noticed that my PC will turn itself off before it actually goes to sleep. The screen turns black and the PC tower will run for about 5 minutes before shutting down. When I check the event logs this is what...
  8. Computer crashes when I put it to sleep

    in Windows 10 Software and Apps
    Computer crashes when I put it to sleep: So I usually put my pc to sleep using the win+x menu, but lately, I've noticed that my PC will turn itself off before it actually goes to sleep. The screen turns black and the PC tower will run for about 5 minutes before shutting down. When I check the event logs this is what...
  9. Putting computer to sleep

    in Windows 10 Performance & Maintenance
    Putting computer to sleep: Can anyone help me with this one. No matter what I do in the power settings the computer will not go to sleep after the 5 minutes that I have set. I have done the bit in the advance, but no matter what I do the computer will not go into sleep mode unless I put in there...
  10. Computer Crashes When Put to Sleep

    in Windows 10 BSOD Crashes and Debugging
    Computer Crashes When Put to Sleep: I press Windows key, Power, and then Sleep. The display immediately turns off but my keyboard and mouse stay lit up, after about 1 minute the computer shuts down. When I go to turn the computer back on it goes through the boot up process. This problem only started happening...