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 May 20th, 2005, 01:37 PM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to run exe file from ASP?

Hi, all,
I try to run the notepad exe file from ASP, I search the goole and find the following source codes:
<%
Set WshShell = Server.CreateObject("WScript.Shell") 'not works
WshShell.Run "c:\windows\notepad.exe"
Set WshShell= nothing
%>
it didn't work! I think maybe it's because there is no notepad.exe in the server machine, so I put the above codes in the client side like:
sub writeFile()

     Set WshShell = CreateObject("WScript.Shell")
     WshShell.Run "c:\windows\notepad.exe"
     Set WshShell= nothing
end sub

it's still not working, I check my machine that the path "c:\windows\notepad.exe" is right. Can anybody tell me why? What's the right way to do it?

 
Old September 23rd, 2005, 06:32 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 553
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to vinod_yadav1919 Send a message via Yahoo to vinod_yadav1919
Default

Hii Andraw!!!

http://www.codeguru.com/forum/showth...hreadid=233294

http://www.faqts.com/knowledge_base/...html/aid/10184
other links can help you
http://www.xuebrothers.net/sh/startup.htm


Cheers :)

vinod





Similar Threads
Thread Thread Starter Forum Replies Last Post
how to run an exe application from ASP vik_asp Classic ASP Components 5 March 8th, 2013 02:18 AM
run .exe in asp hostxxi Classic ASP Basics 0 June 18th, 2008 04:01 AM
How to run desktop .exe from asp ? Tom Carr Classic ASP Basics 7 April 17th, 2007 09:58 AM
can i run exe file from c or c++ code shafiq_77 C++ Programming 7 April 19th, 2005 10:08 AM
Regarding To run EXE from ASP vppatil_20 Classic ASP Components 1 September 9th, 2004 03:08 PM





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