wait for the second VB script untill ended from primary VB script

Posted by yael on Stack Overflow See other posts from Stack Overflow or by yael
Published on 2010-06-13T07:27:06Z Indexed on 2010/06/13 7:32 UTC
Read the original article Hit count: 461

Filed under:

Hi I have VB script that run second VB script The second VB script ask some questions from the input box My problem is that “MyShell.Run” not wait until SecondVBscript.vbs will ended And the Other VB syntax run immodestly also

Need to wait for MyShell.Run process ended and then perform the Other VB syntax How can I do that?

Set MyShell = Wscript.CreateObject("WScript.Shell")

MyShell.Run " C:\Program Files\SecondVBscript.vbs"

Set MyShell = Nothing

Other VB syntax

© Stack Overflow or respective owner

wait for the second VB script untill ended from primary VB script

Posted by yael on Stack Overflow See other posts from Stack Overflow or by yael
Published on 2010-06-13T09:08:58Z Indexed on 2010/06/13 16:12 UTC
Read the original article Hit count: 460

Filed under:

Hi I have VB script that run second VB script The second VB script ask some questions from the input box My problem is that “MyShell.Run” not wait until SecondVBscript.vbs will ended And the Other VB syntax run immodestly also

Need to wait for MyShell.Run process ended and then perform the Other VB syntax How can I do that?

Set MyShell = Wscript.CreateObject("WScript.Shell") 

MyShell.Run " C:\Program Files\SecondVBscript.vbs" 

Set MyShell = Nothing

Other VB syntax

© Stack Overflow or respective owner

wait for the second VB script untill ended from primary VB script

Posted by yael on Super User See other posts from Super User or by yael
Published on 2010-06-13T09:08:58Z Indexed on 2010/06/13 9:13 UTC
Read the original article Hit count: 461

Filed under:

Hi I have VB script that run second VB script The second VB script ask some questions from the input box My problem is that “MyShell.Run” not wait until SecondVBscript.vbs will ended And the Other VB syntax run immodestly also

Need to wait for MyShell.Run process ended and then perform the Other VB syntax How can I do that?

Set MyShell = Wscript.CreateObject("WScript.Shell")

MyShell.Run " C:\Program Files\SecondVBscript.vbs"

Set MyShell = Nothing

Other VB syntax

© Super User or respective owner

Related posts about vbscript