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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Executing exe on server side from a web page

Status
Not open for further replies.

slewe

ISP
Mar 25, 2002
6
US
I am trying to automate some administrative tasks on my IIS server via web interface using vbscript. Is there a way to execute the vbscript and have it interact with the desktop on my server? Example, I have the following sample vbscript on my IIS 5 server.

---------start test.asp-------------
<%@ Language=VBScript %>
<%
Dim shell

Set shell = CreateObject(&quot;WScript.Shell&quot;)
shell.run &quot;notepad.exe&quot;

shell.sendkeys &quot;%{F4}&quot;
%>---------end test.asp-------------

When I remotely goto the test.asp page in my browser, notepad executes based on the task manager on the server but it runs as a background process. Notepad never pops up. I am guessing the IIS service executed it with its permissions. What I want is for the active server page to execute and pop up notepad on the server console. Is this possible?

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top