Wrox Programmer Forums
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old October 18th, 2005, 04:43 AM
Registered User
Join Date: Oct 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default To execute an exe file from an asp page.

I should call some exe file from the asp page.The name and location where that exe file present in my system is given below.

.exe file is in D:\programs\fabmsgsnd.exe.

In an asp page when i click the some command button for e.x. say submit It should call the exe file and exe file should be executed in an command prompt.

aslo i used the below code to call exe file from my asp page but it does not work.


Dim ToRun_Prog_SCmd, ExecRunCmd
Set ToRun_Prog_SCmd = Server.CreateObject("WScript.Shell")
'ToRun_Prog_SCmd.Run "http://webserver/myfolder/MyEXEProg.EXE /CC /RJ7H1JHHJHAZNXZNN /T1212;"
ExecRunCmd = ToRun_Prog_SCmd.Run ("http://webserver/myfolder/MyEXEProg.EXE /CC /RJ7H1JHHJHAZNXZNN /T1212;", 6, True)
Set ToRun_Prog_SCmd = Nothing


i change above one line showing where my exe file is
ExecRunCmd = ToRun_Prog_SCmd.Run ("http://localhost/trackitaug/start fabmsgsnd.exe;")

but when i change this one to my application it is not calling the exe file.can u help me if u can

here is the site name


his is how I execute it in DOS:


Similar Threads
Thread Thread Starter Forum Replies Last Post
Execute .exe file and terminate it courseware ASP.NET 1.0 and 1.1 Basics 1 March 13th, 2006 02:08 AM
Execute .exe file and terminate it courseware Classic ASP Basics 0 November 9th, 2005 02:49 PM
execute an .exe file in my server from an ASP page sree_mig ASP.NET 1.0 and 1.1 Basics 0 October 14th, 2005 05:42 AM
How can I execute .exe file from asp.net page suri_thanda ASP.NET 1.0 and 1.1 Professional 4 May 10th, 2005 01:17 AM
How to Execute and EXE file through ASP rekha_jsr Classic ASP Basics 6 November 16th, 2004 05:51 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.