Sign in to follow this  
Followers 0
soulcaliburvn

How to get all computer name in My network place

9 posts in this topic

I need get all computer name in all work group and display them.

Some one can help me ?

Share this post


Link to post
Share on other sites



I need get all computer name in all work group and display them.

Some one can help me ?

Hi,

try :

#include<Array.au3>


$Servernames = Net_View()

_ArrayDisplay($Servernames, "Servernames")

Func Net_View()
    Local $s_Buf = '', $a_Buf, $i_Pid = Run(@ComSpec & ' /c net view', '', @SW_HIDE, 2 + 4)
    While Not @error
        $s_Buf &= StdoutRead($i_Pid)
    WEnd
    $a_Buf = StringRegExp($s_Buf, "\\\\([0-9a-zA-Z-]*)", 3)
    ProcessClose($i_Pid)
    Return $a_Buf
EndFunc   ;==>Net_View

So long,

Mega


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites

thanks for helping.

I also need to get all workgroup name.

Is there some way to call diaglog box of window show my network place ???

Share this post


Link to post
Share on other sites

Hi,

something like this?

@LogonDNSDomain Logon DNS Domain.

@LogonDomain Logon Domain.

@LogonServer Logon server.

So long,

Mega


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites

thank you very much.

nice avatar :)

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

thank you very much.

nice avatar ^_^

:)

Thanks! :P Glad I could help :D

:D:party::party::alien::alien:

:alien::alien::alien::alien:

:lmao: They are everywhere

Edited by th.meger

Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

Is there some way to call diaglog box of window to show my network place ???

the same as diaglog when u add network printer.

Edited by soulcaliburvn

Share this post


Link to post
Share on other sites

Is there some way to call diaglog box of window to show my network place ???

the same as diaglog when u add network printer.

@th.meger.. they are everywhere... @soulcaliburvn any questions totalling 3 in less than an hour we charge an hourly rate for :)

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

@ th.meger.

what shall I say ???

I digged up the whole world looking for ... the answere.

Now I got YOU, in this forum . goddamn it !!!

billions thankssssssssssssssssssssss

Share this post


Link to post
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
Sign in to follow this  
Followers 0