📜  在默认时间 (30) 秒后以 C++ 重新启动计算机. (Windows) - C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:53.844000             🧑  作者: Mango

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

#include
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;
}