View Full Version : WScript: Getting Output from a DLL?

12-31-2003, 11:22 PM
- don't know where this question belongs, but its JScript-related, so...

Here's the code from my .wsf file:

<script language="Jscript">

var wS,wSx,oO,oS;

wS = new ActiveXObject("WScript.Shell");

wSx = wS.Exec("rundll32 shell32.dll,ShellAbout");

oO = wSx.StdOut;

oS = oO.ReadAll();



The problem is that I can only get the output of run32dll.exe -- which is an empty string -- instead of a return value of TRUE|FALSE from the ShellAbout (http://msdn.microsoft.com/library/en-us/shellcc/platform/shell/reference/functions/shellabout.asp) function.

This is equivalent to just using: .Exec("rundll32");

How can one access the output of the function itself?

01-02-2004, 08:29 PM
i'm not completely sure that's possible. if it is, then it's a question better asked the microsoft knowledge base than here; that's too heavily focused on the WSH for most of us here to be of much use. sorry

01-03-2004, 12:37 AM
Ok, thanks for the advice. :)