Answers for "Restart the computer in c++ after the default time (30) seconds. (Windows)"

C++
0

Restart the computer in c++ after the default time (30) seconds. (Windows)

// Restart the computer in Windows OS after the default time (30) seconds.
// This code was done by Abdulellah Alwainany (YEMEN)

#include<stdlib.h>
int main()
{
  // This method (system) uses the text inside these ("") as a CMD command and run it in the CM
  // You can use it for any operation.
    system("C:\\Windows\\System32\\shutdown /r");
    return 0;
}
Posted by: Guest on June-26-2021

Code answers related to "Restart the computer in c++ after the default time (30) seconds. (Windows)"

Browse Popular Code Answers by Language