Hi Peter,
Until you get a thinBASIC solution worked out, this should do it for you.
C:> sendit mycmds.txt
If it works, try redirecting commands from the console or redirecting output to a file.
Note: Untested Program.FileName = COMMAND() OPEN FileName FOR INPUT AS #1 OPEN "127.0.0.1:2300" FOR SOCKET AS #2 REPEAT LINE INPUT #1, FileCmd PRINT #2, FileCmd LINE INPUT #2,Response PRINT Response UNTIL EOF(1)
I attached a zip that has sendit.exe
Bookmarks