Dear Monkers,

I have a number of Windows file servers (hundreds) to search for folders with specific characteristics. As the top level directories differ on each server I'm looking for a method where I can ask each server for it's top level share names. File::Find unfortunately doesn't walk the top of windows file shares. I'd like my input to be only a list of file servers and have my programs find everything from that. My servers are a mix of Windows versions and clients are also windows-based. Most clients are Windows 7 and up.

Thanks for your guidance in advance.

I wanted to thank Anonymous Monk for the Net View suggestion. We have hundreds of servers and workstations here with exported shares and most of these are not mounted on a drive letter. My intention here was to find a server and identify each share on the system and then walk that share with File::Find. File::Find works great except it fails to find the \\server\sharename at the root of the tree. Net View allowed me to quickly remedy my search. TIA.


In reply to Identifying Windows file share names by CaffeinatedCatatonic

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.