Code: Select all
$app = "C:\Program Files\Everything\Everything.exe";
$target = "";
if ("<curname>" == "") {
$target = "<curpath>";
} else {
$target = "<curname>";
}
run """$app"" ""$target""";

But, it is working completely fine with vscode with no errors and as required.
Code: Select all
$app = "%USERPROFILE%\AppData\Local\Programs\Microsoft VS Code\Code.exe";
$target = "";
if ("<curname>" == "") {
$target = "<curpath>";
} else {
$target = "<curname>";
}
run """$app"" ""$target""";
XYplorer Beta Club