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!

Executing a file

Status
Not open for further replies.

fenstrat

Technical User
Nov 5, 2002
226
US
I need to build a form based webpage. The forms will ask the user for their old email address their password, and their new email address and password. After they hit enter it will execute a simple .exe file with the paramters entered in the forms. Is this possible? Any ideas?
Thanks
 
I'm assuming this is a public website.

Server side EXE is certainly possible but entirely dependent on the server.

Client side EXE is not allowed for security reasons, and though you may be able to find a security loophole it won't remain available indefinately or work with all browsers.

You can use VBScript, JavaScript, Java or a number of other technologies to run client side programs with limited power. These languages may or may not be able to do what your EXE does.

----------
I'm willing to trade custom scripts for... [see profile]
 
I would like to run the exe on the server, do you know how to do this?
Thanks
 
Sorry, I'm not a server admin type: I cannot explain how to do it and I cannot say what the server requirements are.

I have only witnessed EXE and DLL being used in such a capacity on Microsoft servers.

Persuading Apache to use PERL is about the limit of my server skills :(

----------
I'm willing to trade custom scripts for... [see profile]
 

It might be easier to (if possible) convert the functionality of the EXE file to a server-side language, such as ASP or JSP.

What does the EXE file do?

Dan
 
Dan,

Cant the exe file be called from command line - if so then command lines promps can be called from asp using sommat like:

<%
set wshell = CreateObject(&quot;WScript.Shell&quot;)
wshell.run &quot;c:\file.bat&quot;
set wshell = nothing
%>

but you will need to have wsh running.

simon
 
I tried the following. Created a new virtual directory on the server and gave it the rights to execute scripts. Created a .asp file in the new directory. The web browser opens the page, but it's blank and notepad.exe is not opened. Any ideas what I'm doing wrong here?


<% Language=VBScript %>

<%
set wshell = CreateObject(&quot;WScript.Shell&quot;)
wshell.run &quot;c:\notepad.exe&quot;
set wshell = nothing
%>
 
first of all - ur in the wrong forum - try these:

forum222
forum333

secondly - are you sure you notepad.exe is in the root of c:/ ?

try

C:\WINDOWS\system32\notepad.exe
 
I'll try these forums. I copied notepad.exe to the root of c to test this.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top