Solved

Run .exe file using ASP VBScript

Posted on 2007-11-28
2
3,672 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

This is pretty cool.  The purpose of this VB Script is to help you document where JAR (Java ARchive) files and specifically java class files are located so that you can address issues seen with a client or that you can speak intelligently with a dev…
Over the years I have built up my own little library of code snippets that I refer to when programming or writing a script.  Many of these have come from the web or adaptations from snippets I find on the Web.  Periodically I add to them when I come…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

831 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