Command execution in VB

  • Thread starter Thread starter -OSD-
  • Start date Start date
O

-OSD-

Guest
Hi all,

Executing some commands / performing tasks with Shell like this:

Shell("Task 1 .bat file1", AppWinStyle.MaximizedFocus, False, 0)

Shell("Task 2 .PS1 file", AppWinStyle.MaximizedFocus, False, 0)

Shell("Task N copying files", AppWinStyle.MaximizedFocus, False, 0)


Question: In current situation, these command run simultaneously regardless if the previous task is completed.

Is it possible to execute above command Asynchronously so task 2 initiated only when task 1 is completed?

Continue reading...
 
Back
Top