How to display all shared folders
Posted: 01 May 2019 10:50
Is there a way to display all shared folders on a given drive? Perhaps with a Power Filter?
Forum for XYplorer Users and Developers
https://www.xyplorer.com/xyfc/
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");