I have the following code running to monitor some software:
Set oShell = CreateObject("WSCript.shell")
hidden = 0
minimised = 7
logF = 1
sCmd = "monitorSS.bat "
newLog = logFile + 1
'sCmd = "monitorSS.bat test abc"
'newLog = "test8910"
'Run the BAT file.
oShell.Run sCmd & newLog, 0, false 'find out what false does
if newLog < 10 then _
This calls a bat file which telnets to a port and dumps out the response to a logfile. However the connection is not closing hence the 2nd 3rd 4th etc attempts are unable to telnet on that port.
Any help appreciated.