Page 2 of 2

Re: Auto-Select first item causing issue

Posted: 04 Jul 2026 08:12
by highend
exists() doesn't return a true / false boolean

Show the result of:
text exists("%SystemRoot%");

And btw the short form of your script is:

Code: Select all

$app = "%SYSTEMDRIVE%\Program Files\WinDirStat\WinDirStat.exe";
    $target = (exists(<curitem>) == 2) ? <curitem> : <curpath>;
    run """$app"" ""$target""";

Re: Auto-Select first item causing issue

Posted: 04 Jul 2026 08:50
by SaiKarthik
Thank you.