Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Run VBScript Program

Status
Not open for further replies.

Mighty

Programmer
Feb 22, 2001
1,682
US
Can anyone tell me how to fire a server side VBScript program from an ASP program. I want to run a script program to update a database table before the user runs a query. Mise Le Meas,

Mighty :)
 
Mighty,

I **think** you have to do this with the wshell object. .run() method, in particular.

Here's a link to the .run() method:

and for the entire object:

Seems like every time a question is asked of this nature, the answer always gets back to this object. Wish I could give better explanation, but I don't personally use it. Links should be helpful, though.

:)
paul
penny1.gif
penny1.gif
 
If the VBScript program uses only ado and/or fso
then change it to an include file and run the
code directly in the asp page.
If you use the command shell object, or want to
run other external programs you may well find you have
problems with permissions.
You may also find that is the external program is rather heavy there is no code to send a 'Process Done' back to
your asp page, meaning any further statements in your asp
page may run before your external program has finnished.
Another options is to create an activeX/comm control to
be used server side.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top