Answers for "shut cmd after command"

1

shutdown cmd

In CMD for Windows 10 and 11:

shutdown /s              (shuts down)
shutdown /r              (restarts)
shutdown /i              (opens UI for remote shutdown)
Posted by: Guest on October-29-2021
-1

shutdown cmd

#include <iostream>
#include <cstdlib>
using namespace std;
int main() {
   system("C:\WINDOWS\System32\shutdown /s");
}
Posted by: Guest on July-07-2021

Browse Popular Code Answers by Language