| Welcome to Webforumz.com. |
|
Jan 4th, 2008, 17:57
|
#1 (permalink)
|
|
Up'n'Coming Member
Join Date: Jul 2007
Location: Barry
Age: 22
Posts: 53
|
Using Asp to execute a command in a .exe file
how do i make an asp form execute a command to a .exe file?
|
|
|
Jan 7th, 2008, 03:32
|
#2 (permalink)
|
|
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,567
|
Re: Using Asp to execute a command in a .exe file
I don't have any experience with this thing before but having Google in my fingertips, I found some nice article for you here.
How do I execute a DOS command / batch file / exe from ASP?
Hope that's what you are looking for.
Cheers..
__________________
|
|
|
Jan 7th, 2008, 05:20
|
#3 (permalink)
|
|
Administrator
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 4,102
|
Re: Using Asp to execute a command in a .exe file
It depends on whether you just want an exe to run or use functions from a program.
To do the latter you can include .DLL files and execute the code inside them.
__________________
Languages: PHP, mySQL (queries), C#, (X)html, CSS, JS.
|
|
|
Jan 7th, 2008, 08:53
|
#4 (permalink)
|
|
Section Manager - Website Critique
Join Date: May 2007
Location: inside the outside
Posts: 1,095
|
Re: Using Asp to execute a command in a .exe file
this works for me:
- Code: Select all
<%
Dim batchFile
Dim oShell
batchFile = "C:\SafariSetup.exe"
Set oShell = CreateObject("WScript.Shell")
oShell.Run batchFile,3,false
Set oShell = Nothing
If Err.Number <> 0 Then
If oShell <> Nothing Then Set oShell = Nothing
End If
%>
|
|
|
Jan 8th, 2008, 00:21
|
#5 (permalink)
|
|
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,567
|
Re: Using Asp to execute a command in a .exe file
So welshstew, you know ASP huh?  Great!
Your link is almost the same like the link I found! That means I found the right link 
Could I ask you guys what is this "thing" for?
Thanks.
__________________
|
|
|
Jan 11th, 2008, 07:13
|
#6 (permalink)
|
|
Up'n'Coming Member
Join Date: Jul 2007
Location: Barry
Age: 22
Posts: 53
|
Re: Using Asp to execute a command in a .exe file
thanks for the help guys welshstews seems to work atm  and im taking he is a welsh man like myself ill use that bit fo code 
|
|
|
Jan 11th, 2008, 07:30
|
#7 (permalink)
|
|
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,567
|
Re: Using Asp to execute a command in a .exe file
What do you use this code for? What is the purpose?
Thanks..
I am learning new code too..  Like this one!
__________________
|
|
|
Jan 11th, 2008, 09:44
|
#8 (permalink)
|
|
Administrator
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 4,102
|
Re: Using Asp to execute a command in a .exe file
I'm welsh too! sorry, had to say.
__________________
Languages: PHP, mySQL (queries), C#, (X)html, CSS, JS.
|
|
|
| Thread Tools |
|
|
| Rate This Thread |
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|