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.
可能重复: 使用 C++ 调用不正常地重新启动 Mac OS X?
全部,
我正在尝试从我的代码重新启动 Mac。我在网上找不到这样的东西。有没有人这样做过?
在类 UNIX 系统上,这应该可以工作:
system("shutdown -r now");