Solved

wsh.run: executing multiple commands in order

Posted on 2002-07-29
2
301 Views
Last Modified: 2012-06-27
I have a website that a user can go to install software on their computer. They select a piece of software, and then click on submit. It executes an MSI script on a server that we have.

What I would like to do is allow them to select multiple pieces of software then install them in an order when the one finishes, the other picks up. Here is the command I use to execute the application:

<script language=VBscript>
Set wsh3 = createObject("WScript.Shell")    
'Comstring = path to msi script
wsh3.run comstring
'msgbox comstring
</script>

Is there a way to accomplish this. I haven't even attempted, thinking that it will not wait for the first piece to finish.
0
Comment
Question by:tchous
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 38

Accepted Solution

by:
PaulHews earned 100 total points
ID: 7185516
wsh3.run comstring, 1, True

The last parameter causes it to wait for the executed program to finish before continuing.
0
 

Author Comment

by:tchous
ID: 7187753
Paul,


That seems to work. Is there anyway to get the normal text on  the page to load first, then run the vbscript job. The screen turns white until the jobs are finished..
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question