Here is my program to shutdown the PC in c++, and I use vs code editor and WSL to run this program:
#include<iostream>
#include<stdlib.h>
int main()
{
system("C:\\Windows\\System32\\shutdown /i ");
}
I got this message sh: 1: C:WindowsSystem32shutdown: not found
.