I use the following VB script ( example ) , to open CMD window and run ipconfig on my WIN XP
CMD window was opened
but from some reason WshShell.SendKeys not send the ipconfig on CMD window
please advice what chuld be the reasons that WshShell.SendKeys not send the "ipconfig" ?
Option Explicit
Dim WshShell
set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.run("cmd.exe")
WScript.Sleep 5000
WshShell.SendKeys "ipconfig"
WshShell.SendKeys("{Enter}")
WScript.Sleep 5000