【发布时间】:2021-02-19 19:06:57
【问题描述】:
我正在尝试使用此命令让我的电脑进入睡眠状态
system("C:\\Windows\\System32\\psshutdown -d -t 0");
如果我使用 cmd 可以正常工作,但是当我在 cpp 中运行它时,我得到了这个
'C:\Windows\System32\psshutdown' is not recognized as an internal or external command, operable program or batch file.
【问题讨论】:
标签: c++ windows cmd 32bit-64bit wow64