Wrox Programmer Forums
Classic ASP Components Discussions specific to components in ASP 3.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Components 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 June 12th, 2009, 10:59 PM
Registered User
Join Date: May 2004
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
Unhappy Dig.exe Command via ASP Page not work


I'm having trouble to execute dig.exe via ASP page
dig.exe is a utility, which provide domain name (whois) lookup .
for more detial: http://members.shaw.ca/nicholas.fong/dig/

here is my code
Dim wshell, intRetun 
set wshell = server.CreateObject("wscript.shell")      
intRetun = wshell.Run("%comspec% /c dig > c:\dig\dig.txt",0,true) 
Response.Write (intRetun)  
set wshell = nothing %>
It doesn't return any error.
If I run any other command via ASP that is running fine. If i run dig command from command prompt that is also fine.

could you help me out

Old June 25th, 2009, 06:37 AM
Registered User
Join Date: Jun 2009
Posts: 1
Thanks: 0
Thanked 1 Time in 1 Post

Probably your ASP page do not have access to server HD target directory. DIG goes well, but output to file cannot be done. ;o)
The Following User Says Thank You to MPZero For This Useful Post:
Farooq (June 25th, 2009)

Similar Threads
Thread Thread Starter Forum Replies Last Post
To execute an exe file from an asp page. sree_mig Classic ASP Basics 0 October 18th, 2005 04:43 AM
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
asp and command line EXE whyulil Classic ASP Professional 1 June 30th, 2005 08:36 AM
Running exe from iis asp.net page [email protected] Classic ASP Components 2 February 21st, 2005 10:41 PM
Running .exe on client side from a .asp page kashyap_thaker Classic ASP Basics 2 November 28th, 2003 06:48 PM

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