ObjShell.Run "cmd /C CD C:\Program Files (x86)\VanDyke Software\SecureCRT\ & SecureCRT.exe /SCRIPT C:\00MYTEMP\HW2.vbs", 1, false ObjShell.Run "cmd /C CD C:\Program Files (x86)\VanDyke Software\SecureCRT\ & SecureCRT.exe /SCRIPT C:\00MYTEMP\HW1.vbs", 1, false Set objShell = CreateObject("WScript.Shell") The only way I can get it to work is if I write it like this: From there I can use the command line flag /SCRIPT to tell SecureCRT to run a script, but it's not working as smoothly as I'd like. In the testing I've done it appears I have to use this method to call SecureCRT.exe, which will open a new instance of the program. I've been playing with this but having a bear of a time getting it to work. Tonight I came across this Run Method () and it looks like the optional bWaitOnReturn argument would tell a VBS script to do just what I'm asking about. One of the bottlenecks has been that (as I've been told) there is no current way for SecureCRT to call a secondary script and then move on to the next line of code before the secondary script finishes its work and passes control back to the main script. In previous posts I've talked about creating a script that could scan 100-1,000 devices at a time.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |