Running VB6 SP6 on Windows 10, 64 bit.
I'm trying to script a telnet session from VB.
I open telnet to an address and port as follows:
telnetpath = "telnet 192.168.0.91 9999"
Shell telnetpath, vbNormalFocus
This works when the program is executed from within the VB IDE, but it doesn't work in the compiled code. I get an error saying that it can't find the telnet program.
I know telnet is enabled, as I can open a session from a command window. Also, this worked in Windows XP, but not on Windows 10.
I tried to make a batch file to do this and shell to the batch from my program, but the result is the same; it works if I execute the batch from a command window or the VB IDE, but not if I call the batch from compiled VB. Something tells me this is related to 64/32 bit, but don't know how to overcome it.
Joe
What I have tried:
Shell, Shellexecute, cmd, batch