Simple Wscript.Shell question
Posted on 2004-08-19
I want to use WScript.shell Run command, to run a little EXE file on the server, like nslookup.exe , and then get all the results (what the EXE file returns) and show them in my page.
As I am new to Windows Script Host, I don't know how to get the returned texts.
I testes such code:
Set WshShell = WScript.CreateObject("WScript.Shell")
ReturnCode = WshShell.Run("D:\mx.exe",1,True)
where mx.exe is a program that performs MX lookups (Mail Server lookups) but What I get is just "1"!