Hey
I been trying to write a C++ for restarting my router when the line drops, but I'm struggling to get my telnet commands to work. Telnet is installed and I can do a normal telnet from cmd, but when I run it from my c++ program it doesn't recognize telnet as a command.
I'm simply trying to do the following:
int main(void)
{
system("telnet");
}
'telnet' is not recognized as an internal or external command,
operable program or batch file.
this is what I'm getting out of cmd.
Ive also tried "start telnet" but that doesn't work either.
Strange thing is the exe works just fine on my laptop, so something is stopping telnet from running
Anyone got any advice?
I been trying to write a C++ for restarting my router when the line drops, but I'm struggling to get my telnet commands to work. Telnet is installed and I can do a normal telnet from cmd, but when I run it from my c++ program it doesn't recognize telnet as a command.
I'm simply trying to do the following:
int main(void)
{
system("telnet");
}
'telnet' is not recognized as an internal or external command,
operable program or batch file.
this is what I'm getting out of cmd.
Ive also tried "start telnet" but that doesn't work either.
Strange thing is the exe works just fine on my laptop, so something is stopping telnet from running
Anyone got any advice?
Last edited: