blackadder has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks

How can I get the folder properties in Win32 please?

On my PC I have a drive mapped to a network share (let say drive t:\). If I pick up any folder, right click and select the propertiers of that file, I get a display of the properties window with at least 4 tabs, one of which says DFS, in this tab there is a box titled "Referral list". In the referral list I have a UNC path for where that folder physically resides.

My question is; Is there a way in Perl that I can extract that UNC path?

Thanks
Blackadder

Replies are listed 'Best First'.
Re: Win32 Folder Properties
by marto (Cardinal) on Jul 13, 2005 at 09:57 UTC
    Hi,

    It may be worth while looking at Win32::NetResource.

    "GetUNCName( $UNCName, $LocalPath );
    Returns the UNC name of the disk share connected to $LocalPath in $UNCName"

    Can you get any of these details via Win32API::File or Win32::File::Summary ?
    Is this is related to your recent DFS work?

    Hope this helps

    Martin
      Yes It is to do with my DFS work....Unfortunatly none of the suggestion has worked!

      Without an example of DCE::DFS then I am not sure on how to use it!

      Cheers PERLMONKS.
      Blackadder
        Hi,

        Without looking back at everything you have done, have you read DCE::DFS? The methods are listed here.
        Failing that perhaps use google and look for an example, surely (dont call me Surely) someone else out there has done something like this before.

        Hope this helps

        Martin