#include <stdlib.h>
int main(void){
system("shutdown -r -f -m \\192.168.1.104 -t 60");
return 0;
}
This command closes a computer on the network, i tried it and it works fine. All i need is to my program to run it so I can run it with the IP adress i will give him. I have been working on this for days....i looked in _popen _pclose but i don't think that's the way. When i run it, it opens about 50 windows of command prompt and then close them. If someone can tell me why my code isn't working i'd be very happy.
Thank you
Elie
int main(void){
system("shutdown -r -f -m \\192.168.1.104 -t 60");
return 0;
}
This command closes a computer on the network, i tried it and it works fine. All i need is to my program to run it so I can run it with the IP adress i will give him. I have been working on this for days....i looked in _popen _pclose but i don't think that's the way. When i run it, it opens about 50 windows of command prompt and then close them. If someone can tell me why my code isn't working i'd be very happy.
Thank you
Elie