开发者

How to reboot Mac OS from C++ [duplicate]

This question already h开发者_如何学编程as answers here: Closed 11 years ago.

Possible Duplicate:

Restart Mac OS X ungracefully using a C++ call?

All,

I am trying to reboot a Mac from my code. I find no such thing on the web. Has anyone done that?


On UNIX-like systems this should work:

system("shutdown -r now");
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜