Re: Detect open windows shares?
- From: "Dr.Ruud" <rvtol+news@xxxxxxxxxxxx>
- Date: Mon, 3 Apr 2006 02:15:58 +0200
Trick Kid schreef:
I've figured out NetShareCheck to check if a network share is valid,
but is there a way to scan a remote machine for ANY available network
shares, even if you don't know the name?
That depends on what you define as 'available'. In Windows Explorer, go
to 'My Network Places' and check which are avaible there. Those you will
be able to enumerate. Alternatively, use the 'net' command in a DOS-box:
net view /?
net view \\127.0.0.1 (might include shares with a $NAME, meaning
invisble)
net view \\hostname
More resources:
Win32::NetResource (see the Example section)
Win32::DriveInfo
google: site:microsoft.com enumerate shares
google: WNetEnumResource
--
Affijn, Ruud
"Gewoon is een tijger."
.
- Follow-Ups:
- Re: Detect open windows shares?
- From: A. Sinan Unur
- Re: Detect open windows shares?
- References:
- Detect open windows shares?
- From: Trick Kid
- Detect open windows shares?
- Prev by Date: Detect open windows shares?
- Next by Date: Re: Detect open windows shares?
- Previous by thread: Detect open windows shares?
- Next by thread: Re: Detect open windows shares?
- Index(es):
Relevant Pages
|