Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Components
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 12th, 2009, 10:59 PM
Registered User
 
Join Date: May 2004
Location: Toronto, On, Canada.
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
Unhappy Dig.exe Command via ASP Page not work

Hi,

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
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

thanks
Farooq
  #2 (permalink)  
Old June 25th, 2009, 06:37 AM
Registered User
 
Join Date: Jun 2009
Posts: 1
Thanks: 0
Thanked 1 Time in 1 Post
Default

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)
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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 mnazirkhalid@hotmail.com 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



All times are GMT -4. The time now is 07:43 AM.


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