p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Classic ASP Components (http://p2p.wrox.com/forumdisplay.php?f=68)
-   -   Dig.exe Command via ASP Page not work (http://p2p.wrox.com/showthread.php?t=74771)

Farooq June 12th, 2009 10:59 PM

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 [:(!]


MPZero June 25th, 2009 06:37 AM

Probably your ASP page do not have access to server HD target directory. DIG goes well, but output to file cannot be done. ;o)

All times are GMT -4. The time now is 03:08 AM.

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