good day to all,
I'm seeking help with the following challenge. I would like to fill a VBS script with the variables from a TXT file. My TXT file will have multiple IP addresses, the VBS script should then take every address and use it for the command at line 5 "telnet 192.168.25.230".
'append MAC address to AccesPoint
set WshShell = CreateObject("WScript.Shell")
'Launch telnet session from the command line
WshShell.Run "telnet 192.168.25.230"
'Wait until the application has loaded - Check every second
While WshShell.AppActivate("C:\winnt\system32\telnet.exe") = FALSE
wscript.sleep 100
Wend
'Bring the application to the foreground
WshShell.AppActivate "C:\winnt\system32\telnet.exe"
wscript.sleep 100
afterwards it should restart this whole procedure, but then with the next IP address.
could you give me a hint?
I'm seeking help with the following challenge. I would like to fill a VBS script with the variables from a TXT file. My TXT file will have multiple IP addresses, the VBS script should then take every address and use it for the command at line 5 "telnet 192.168.25.230".
'append MAC address to AccesPoint
set WshShell = CreateObject("WScript.Shell")
'Launch telnet session from the command line
WshShell.Run "telnet 192.168.25.230"
'Wait until the application has loaded - Check every second
While WshShell.AppActivate("C:\winnt\system32\telnet.exe") = FALSE
wscript.sleep 100
Wend
'Bring the application to the foreground
WshShell.AppActivate "C:\winnt\system32\telnet.exe"
wscript.sleep 100
afterwards it should restart this whole procedure, but then with the next IP address.
could you give me a hint?