View Single Post
  #1 (permalink)  
Old June 12th, 2009, 10:59 PM
Farooq Farooq is offline
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