Hi guys, just wondering how to script this correctly to wait for the window to run the secureCRT application and THEN close the window. Right now it is closing the first window that is open. If I run this from explorer or from cscript from dos it will close those windows and then run secureCRT.
Set objShell = Wscript.CreateObject("Wscript.Shell")
objShell.run(Chr(34) & "C:\Program Files\VanDyke Software\SecureCRT\SecureCRT.EXE" & chr(34) & " /script D:\logs\Scripts\recordedScript.vbs")
objShell.AppActivate "192.168.1.79 - SecureCRT"