I am trying to sleep my PC using this command
system("C:\\Windows\\System32\\psshutdown -d -t 0");
it works fine if I use cmd, but when I run this in cpp, I got this
'C:\Windows\System32\psshutdown' is not recognized as an internal or external command, operable program or batch file.