Skip to content

Instantly share code, notes, and snippets.

@guai
guai / sleep-in-90m.bat
Last active March 17, 2024 11:59
batch & powershell "quine" skipping execution policy
@goto ps
echo 'feeling sleepy...'
Start-Sleep -Seconds (90*60); C:\windows\System32\rundll32.exe powrprof.dll,SetSuspendState Standby
exit
:ps
@echo off
more +1 %0 | powershell -executionpolicy unrestricted -command -