I am attempting to run a C++ executable that accepts a single argument from my web page (retrieved from the Query string. I had planned on using WScript.Shell but I can only execute certain commands like "ipconfig" and get a "system cannot find the file specified error" whenever I try and run even a simple "dir" command. My ASP test file is located in the same directory as my executable. Is there some command restriction on WScript.Shell that I am not aware of?<BR><BR>Code is as follows<BR><BR>&#060;% ID = Request.Querystring("object_id")<BR><BR>Response.B uffer = True <BR><BR>Server.ScriptTimeOut = 900<BR><BR>Function ConvertASCII(strASCII)<BR><BR>strASCII = Replace(strASCII, vbNewLine, "<BR>")<BR><BR>strASCII = Replace(strASCII, " ", " ")<BR><BR>ConvertASCII = strASCII<BR><BR>End Function<BR><BR><BR>Set objWSHShell = CreateObject("WScript.Shell")<BR><BR>// This works fine<BR>strCommand = "ipconfig"<BR><BR>// This doesn&#039;t work<BR>// strCommand = "dir"<BR><BR>// This certainly doesn&#039;t work<BR>// strCommand = "myscript.exe 1" <BR><BR>Set objExec = objWSHShell.Exec (strCommand)<BR><BR>strOutPut = ""<BR><BR>Do While Not objExec.StdOut.AtEndOfStream<BR><BR>strOutPut = strOutPut & objExec.StdOut.Read(1)<BR><BR>If Instr(strOutPut, vbNewLine) &#060;&#062; 0 Then <BR><BR>Response.Write ConvertASCII(strOutPut)<BR><BR>strOutPut = ""<BR><BR>Response.Flush<BR>End If<BR>Loop<BR><BR>%&#062; <BR><BR>Any help would be greatly appreciated.<BR><BR>-DS<BR>