Solved executing multiple commands in order

Posted on 2002-07-29
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 comstring
'msgbox comstring

Is there a way to accomplish this. I haven't even attempted, thinking that it will not wait for the first piece to finish.
Question by:tchous
LVL 38

Accepted Solution

PaulHews earned 100 total points
ID: 7185516 comstring, 1, True

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

Author Comment

ID: 7187753

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..

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…

813 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now