윈도우 shutdown 명령어
loading
본문 바로가기

IT

윈도우 shutdown 명령어

shutdown -s -t 3600

shutdown 명령어를 사용하면 시스템이 n분 후 종료됩니다라는 시스템 메시지가 나오는데 이걸 안 나오게 하는 방법이 스택 익스체인지에 공유되어 있다. (https://superuser.com/questions/559736/avoid-system-will-shut-down-in-10-minutes-using-shutdown-on-windows)

 

 

shutdown -s -t 3600 -c " "

이렇게 하면 메시지가 없이 종료된다

 

 

timeout를 쓰는 방법도 있으나

timeout -t 3600 -nobreak && shutdown -s -t 00

그런데 timeout은 명령 프롬프트가 열려있어야 한다고 한다.