Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Windowsのシャットダウンが中止されることはわかっていshutdown -aますが、シャットダウンが進行中かどうかを確認できる場所があるかどうかを知る必要があります.
shutdown -a
理想的には、次のような小さなプログラムが必要です。
import os while True: shuttingDown = <shutdown variable to check> if shuttingDown: os.system("shutdown.exe -a")