A file that puts the computer to sleep when clicked?

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...
 
Back
Top Bottom