Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Win32::OLE and Wscript Shell -> Getting data back

by igelkott (Priest)
on Jun 14, 2010 at 22:24 UTC ( #844752=note: print w/replies, xml ) Need Help??


in reply to Win32::OLE and Wscript Shell -> Getting data back

how to get the data back from the NET ADD command

Don't know how to read the return result directly (which seemed to be the real question) but here are two suggestions for getting around the issue:

  • Try Win32::OLE->LastError(), though this may only report certain categories of errors.
  • Check the event log (via Win32::EventLog or whatever). Seems like a terrible bother but success/failure should be appear in the logs.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://844752]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2021-04-10 21:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?