How to display all shared folders

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Carl
Posts: 3
Joined: 01 May 2019 10:47

How to display all shared folders

Post by Carl »

Is there a way to display all shared folders on a given drive? Perhaps with a Power Filter?

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: How to display all shared folders

Post by highend »

What does "display" mean in this case, show all these folders in the current pane?
One of my scripts helped you out? Please donate via Paypal

Carl
Posts: 3
Joined: 01 May 2019 10:47

Re: How to display all shared folders

Post by Carl »

highend wrote: 01 May 2019 10:54 What does "display" mean in this case, show all these folders in the current pane?
Yes.

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: How to display all shared folders

Post by highend »

Then use a script:

Code: Select all

    $drive  = regexreplace(gpc(, "drive") . ":\", "([\\.+(){\[^$])", "\$1");
    $wmic   = runret("%COMSPEC% /c wmic share get path");
    $shares = regexmatches($wmic, "$drive[^ ]+", <crlf>);
    paperfolder("Shares", $shares, , "nl");
One of my scripts helped you out? Please donate via Paypal

Post Reply