Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Scripting

Notices

 
 
Thread Tools Rating: Thread Rating: 2 votes, 1.00 average. Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-01-2013, 10:09 AM
mbaBrickman mbaBrickman is offline
Registered User
 
Join Date: May 2013
Posts: 3
Opening Multiple sessions through the command prompt

I'm tiring to open multiple tabs of the same session and run a different script for each session. I'm using the code below to open the sessions can call the scripts for each session

WshShell.run "C:\CRT\SecureCRT.exe /T /s Payroll /SCRIPT C:\brickman\crt_scripts\PayrollScripts\Branch671.vbs /s Payroll /SCRIPT C:\brickman\crt_scripts\PayrollScripts\Branch673.vbs /s Payroll /SCRIPT C:\brickman\crt_scripts\PayrollScripts\Branch674.vbs /s Payroll /SCRIPT C:\brickman\crt_scripts\PayrollScripts\Branch675.vbs /s Payroll /SCRIPT C:\brickman\crt_scripts\PayrollScripts\Branch676.vbs /s Payroll /SCRIPT C:\brickman\crt_scripts\PayrollScripts\Branch678.vbs /s Payroll /SCRIPT C:\brickman\crt_scripts\PayrollScripts\Branch681.vbs /s Payroll /SCRIPT C:\brickman\crt_scripts\PayrollScripts\Branch780.vbs /s Payroll /SCRIPT C:\brickman\crt_scripts\PayrollScripts\Branch781.vbs /s Payroll /SCRIPT C:\brickman\crt_scripts\PayrollScripts\Branch788.vbs /s Payroll /SCRIPT C:\brickman\crt_scripts\PayrollScripts\Branch789.vbs /s Payroll /SCRIPT C:\brickman\crt_scripts\PayrollScripts\Branch790.vbs /s Payroll /SCRIPT C:\brickman\crt_scripts\PayrollScripts\Branch791.vbs /s Payroll /SCRIPT C:\brickman\crt_scripts\PayrollScripts\Branch792.vbs", 0, true

When i do this i get multiple tabbed sessions but each session runs the last script in the code Branch792.vbs

how do i get each session to call its own script?

thanks.
Reply With Quote
 

Tags
scripts

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 08:18 PM.