Env. variables with parentheses don't work in $exec

Found a bug in "Everything"? report it here
Post Reply
vurtikas
Posts: 36
Joined: Fri Jan 08, 2010 11:28 am

Env. variables with parentheses don't work in $exec

Post by vurtikas »

I'm using $exec("%Commander_Path%\TOTALCMD.exe" /t /o "%1")

%Commander_Path% expands to "C:\Program Files (x86)\TotalCmd"

Everything 1.3.1.636 fails with: "ShellExecuteExW(): GetLastError(): 2: failed to execute C:\Program Files (x86"
void
Developer
Posts: 17157
Joined: Fri Oct 16, 2009 11:31 pm

Re: Env. variables with parentheses don't work in $exec

Post by void »

Thanks for reporting this issue.

This is a bug, I will have it fixed for the next release of Everything.

For now you will need to specify the full path to totalcmd.exe with-out
using the environment string and use $( and $) to escape ( and ).

For example:

Code: Select all

$exec("C:\Program Files $(x86$)\TotalCmd\TOTALCMD.exe" /t /o "%1")
Post Reply