Jump to content

Regex Help Required Please


Recommended Posts

i wasted half an hour trying to work on getting this to work,

Domain

-------------------------------------------------------------------------------
MSHOME          
The command completed successfully.

this is the output from

Local $s_Buf = '', $a_Buf, $i_Pid = Run(@ComSpec & ' /c net view /domain', '', @SW_HIDE, 2 + 4)
    While Not @error
        $s_Buf &= StdoutRead($i_Pid)
    WEnd
    ConsoleWrite(@CRLF & $s_Buf)

I need to Extract the <MSHOME> part only (it comes with a few spaces behind it. of course i do have a solution with string mid , etc but itlooks ridiculous. please help.

Edited by rajeshontheweb
Link to comment
Share on other sites

thanks a lot, i might use it later, i had seen the ServerENum Function in MSDN but as always, being a nube with dllcalls, and the techinicalities of the errors, i didnt wanna try it yet. in near future, i would like to use that funtion. i do like dll call rather than net view. :-)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...