Web Design and Development Forums

Using Asp to execute a command in a .exe file

This is a discussion on "Using Asp to execute a command in a .exe file" within the ASP Forum section. This forum, and the thread "Using Asp to execute a command in a .exe file are both part of the Program Your Website category.


Go Back   Webforumz.com > Program Your Website > ASP Forum

Welcome to Webforumz.com.
Register Now Register now!

Reply
 
LinkBack Thread Tools Rate Thread
Old 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?
Andrew1986 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Jan 7th, 2008, 03:32   #2 (permalink)
Most Reputable Member
 
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,567
Blog Entries: 2
Send a message via Yahoo to Monie
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..
__________________

Monie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Jan 7th, 2008, 05:20   #3 (permalink)
Administrator
 
alexgeek's Avatar
 
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 4,102
Blog Entries: 9
Send a message via MSN to alexgeek
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.


alexgeek is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Jan 7th, 2008, 08:53   #4 (permalink)
Section Manager -
Website Critique
 
welshstew's Avatar
 
Join Date: May 2007
Location: inside the outside
Posts: 1,095
Blog Entries: 10
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
%>
__________________
WelshStew
Section Manager

tierney rides tboard - uk site : xtreme wales - extreme clothing
welshstew is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Jan 8th, 2008, 00:21   #5 (permalink)
Most Reputable Member
 
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,567
Blog Entries: 2
Send a message via Yahoo to Monie
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.
__________________

Monie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old 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
Andrew1986 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Jan 11th, 2008, 07:30   #7 (permalink)
Most Reputable Member
 
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,567
Blog Entries: 2
Send a message via Yahoo to Monie
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!
__________________

Monie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Jan 11th, 2008, 09:44   #8 (permalink)
Administrator
 
alexgeek's Avatar
 
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 4,102
Blog Entries: 9
Send a message via MSN to alexgeek
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.


alexgeek is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools
Rate This Thread
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
IIS execute httpd.ini file brianwilson71 Apache and IIS 10 Sep 17th, 2007 14:35
problem running php from the command line edwarrj1 PHP Forum 2 Dec 5th, 2006 18:06
Datagrid and update command Mitsuki ASP.NET Forum 0 May 16th, 2006 05:06
Execute external program via PHP ktsirig PHP Forum 1 Oct 1st, 2005 23:08
Need help with document.write command MojoP JavaScript Forum 0 Aug 15th, 2005 18:15



Latest Updates

All Points SEO Security Advisory - CHECK YOUR SITE NOW!

Creative Coding :: February 2008

Webforumz is sponsored by: WESH UK Web Hosting
All times are GMT. The time now is 19:55.

Sleep Study Scoring :: Free Bet :: Website Templates :: Online Betting :: Bookmakers :: Funny Quotes :: Internet Recruitment Software :: Microsoft CRM Experts :: Online Casino :: Decorated Christmas Trees :: Midwife Forums :: Football Betting :: Ecommerce Software :: Web Hosting :: Football Stats :: Dry Cleaning Collection :: xtreme wales - extreme clothing :: Apuestas :: Sharepoint Consultants :: Website Optimisation :: Office Clearance London :: Sharepoint Experts :: Sports Betting :: Casino :: Website Templates :: Web Design Development India :: Online Gambling

Powered by: vBulletin Version 3.7, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
© 2003-2008 Webforumz.com : All Rights Reserved
Search Engine Friendly URLs by vBSEO 3.2.0 RC6


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59