Skip to content

Instantly share code, notes, and snippets.

@FelipeGrijo
Last active September 26, 2023 01:09
Show Gist options
  • Save FelipeGrijo/63f69f57c0302bc7451113be9ddcf2eb to your computer and use it in GitHub Desktop.
Save FelipeGrijo/63f69f57c0302bc7451113be9ddcf2eb to your computer and use it in GitHub Desktop.
Suspender Win 10 pelo cmd

Para mudar o tempo em que o pc irá suspender, altere o valor 7200. Para fazer o cálculo, faça: Hora(s) x 60 x 60.

Exemplo: 1 x 60 x 60 = 3600

Depois de x Horas o pc irá suspender.

:: https://gist.github.com/FelipeGrijo
PING 127.0.0.1 -n 7200 -w 1000 >NUL
rundll32.exe PowrProf.dll,SetSuspendState
@tiagoangelos
Copy link

Usa esse programa para pc, é mais facil e automatizado: https://github.com/jtas20/Shutdown-Timer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment