Search Commands or any way to run a program from Everything?

Discussion related to "Everything" 1.5.
nikov
Posts: 131
Joined: Fri Dec 24, 2021 10:31 am

Search Commands or any way to run a program from Everything?

Post by nikov »

Greetings,

Is there any way to run a program from Everything as a Search Command?

I looked into the Search Commands but found none.

I thought, there should be commands something like these:
/run <filename> [<args>]
/runwait <filename> [<args>]

Use Case:
These can be used to inform an external program that, a bookmark is launched from Everything, then the external program can do some additional tasks according to user's need.

Other than Search Command it can be any way that satisfies this use case.

Thank you.
void
Developer
Posts: 20362
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search Commands or any way to run a program from Everything?

Post by void »

I'll look into adding /run and /runwait search commands

Thank you for the suggestion.
void
Developer
Posts: 20362
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search Commands or any way to run a program from Everything?

Post by void »

Just making a note here that /run and /run-wait was added in 1397a.

/run and /runwait requires enabling all search commands.



Everything 1.5.0.1424b will now process external SendMessages in /runwait
therube
Posts: 5848
Joined: Thu Sep 03, 2009 6:48 pm

Re: Search Commands or any way to run a program from Everything?

Post by therube »

So /run runs asynchronously, where /run-wait runs synchronously.

/run-wait cmd /c cd c:\out\salamander && dd.exe
void
Developer
Posts: 20362
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search Commands or any way to run a program from Everything?

Post by void »

Correct, and with the 1424b update, you can now execute scripts with /runwait that pull data from Everything.