Solved

Run .exe file using ASP VBScript

Posted on 2007-11-28
2
3,655 Views
Last Modified: 2012-06-27
Hi Experts,

      Does anyone here has an idea how to run an exe visibly inside ASP vbscript code? Below is the code that I am using so far. It did run an exe file but not visible, it has an instance running in Task manager. What I want to happen is to run it visible so that I can terminate it easily without going to Task Manager window and I can see also what the error if there is.
set WshShell = server.CreateObject("WScript.Shell") 

sFileName="exporter.exe"

WshShell.Run server.MapPath(sFileName)

set WshShell= nothing

Open in new window

0
Comment
Question by:barman78
2 Comments
 
LVL 8

Accepted Solution

by:
deadite earned 125 total points
ID: 20372237
Try the extra window parameters to display the window.  Here are the options:

http://www.devguru.com/Technologies/wsh/quickref/wshshell_Run.html
0
 
LVL 3

Expert Comment

by:coagantus
ID: 24249257
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This script will sweep a range of IP addresses (class c only, 255.255.255.0) and report to a log the version of office installed. What it does: 1.)      Creates log file in the directory the script is run from (if it doesn't already exist) 2.)      Sweep…
Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

757 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

19 Experts available now in Live!

Get 1:1 Help Now