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

  • Thread starter Thread starter DahamSirimanna
  • Start date Start date
D

DahamSirimanna

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!

Continue reading...
 

Similar threads

P
Replies
0
Views
3
Pedro AugustoTeixeira de Freitas
P
N
Replies
0
Views
3
Nathan Charlton
N
Back
Top