this is causing an issue with custom button to open either the user selected (folder / file) or the complete folder when nothing is intentionally selected by user.
here is the code snippet i used for opening the current folder if nothing is selected or open the selcted (folder / file)
Code: Select all
$app = "%LOCALAPPDATA%\Programs\Microsoft VS Code\Code.exe";
$target = "";
if ("<curname>" == "") {
$target = "<curpath>";
} else {
$target = "<curname>";
}
run """$app"" ""$target""";
because most of the folders i select are the repos and i should be opening the vscode by selecting nothing in the repo folder so that all the repo is opened in vscode.
XYplorer Beta Club