Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Run .exe file using ASP VBScript

Posted on 2007-11-28
2
Medium Priority
?
3,701 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 375 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

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

When it comes to writing scripts for a Client/Server computing environment it is essential to consider some way of enabling the authentication functionality within a script. This sort of consideration mainly comes into the picture when we are dealin…
This article is the result of a quest to better understand Task Scheduler 2.0 and all the newer objects available in vbscript in this version over  the limited options we had scripting in Task Scheduler 1.0.  As I started my journey of knowledge I f…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

916 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