...

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



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

Here's the code from my .wsf file:


<job>
<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();

WScript.Echo(oS);

</script>
</job>


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?

joh6nn
01-02-2004, 07: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

swmr
01-02-2004, 11:37 PM
Ok, thanks for the advice. :)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum