Page 1 of 1

Error opening with everything.exe app

Posted: 24 Nov 2024 19:17
by SaiKarthik
I am trying to add a custom button to open the <curname> or <curpath> from everything.exe app using the below script.

Code: Select all


 $app = "C:\Program Files\Everything\Everything.exe";

 $target = "";
 if ("<curname>" == "") {
   $target = "<curpath>";
 } else {
   $target = "<curname>";
 }

 run """$app"" ""$target""";
 
it is throwing below error but it works when right click and open the everything.exe app from right click menu.
Image

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""";
 

Re: Error opening with everything.exe app

Posted: 24 Nov 2024 20:06
by highend
So, from a command prompt:

Code: Select all

"C:\Program Files\Everything\Everything.exe" "C:\Intel"
works fine?

Re: Error opening with everything.exe app

Posted: 25 Nov 2024 01:39
by SaiKarthik
This is throwing the same error.

As you posted the command, I can understand this is something which command prompt is getting executed with command.

Then I searched the documentation for everything.exe.

"C:\Program Files\Everything\Everything.exe" -p "C:\Intel"


This -p is missing and adding this fixed it.

Now I understood and fixed it.

Thanks.