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 » 01 May 2019 10:50

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

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

Re: How to display all shared folders

Post by highend » 01 May 2019 10:54

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 or paypal_donate (at) stdmail (dot) de

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

Re: How to display all shared folders

Post by Carl » 01 May 2019 15:08

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: 8930
Joined: 06 Feb 2011 00:33

Re: How to display all shared folders

Post by highend » 01 May 2019 15:13

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 or paypal_donate (at) stdmail (dot) de

Post Reply