0
1
Here is what I am planning to do
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run"cmd"
WshShell.AppActivate"telnet 192.168.1.1"
WScript.Sleep 50
WshShell.SendKeys"telnet 192.168.1.1 -f 22.txt{ENTER}"
WScript.Sleep 2000
WshShell.SendKeys "admin{ENTER}"
WScript.sleep 50
WshShell.SendKeys"sys info{ENTER}"
WScript.Sleep 50
I want this totally hidden but the sendkeys
just works on activated window so trying to make it hidden by minimizing the window failed.
I couldn't find any understandable way to do this
Is this possible without additional tools?
"Did you read over ss64.com/vb/run.html and see the section labeled Invisible.vbs" yes i did ............is there any way to hide that "cmd window running the telnet commands with sendkeys" that what i have meant in the first place. or the sendkeys can be replaced with something else ? – mina nageh – 2018-06-03T00:16:24.433
but how can i get it automaticed ?? – mina nageh – 2018-06-03T02:06:27.783