Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

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

by igelkott (Priest)
on Jun 14, 2010 at 22:24 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://844752]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2024-04-25 23:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found