Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Feb 2003
    Posts
    638
    Thanks
    0
    Thanked 0 Times in 0 Posts

    WScript: Getting Output from a DLL?

    - 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 function.


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

    How can one access the output of the function itself?
    hmm... ?

  • #2
    Senior Coder joh6nn's Avatar
    Join Date
    Jun 2002
    Location
    72 W. 48' 57" , 41 N. 32' 04"
    Posts
    1,887
    Thanks
    0
    Thanked 1 Time in 1 Post
    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
    bluemood | devedge | devmo | MS Dev Library | WebMonkey | the Guide

    i am a loser geek, crazy with an evil streak,
    yes i do believe there is a violent thing inside of me.

  • #3
    Regular Coder
    Join Date
    Feb 2003
    Posts
    638
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ok, thanks for the advice.
    hmm... ?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •