Page 1 of 1

Script if <curitem> is *.lnk run this command, if any other file extension or folder, run that...

Posted: 27 Sep 2019 13:04
by cadu
Hi,

I'd appreciate your help to elaborate a script syntax based on the condition:

if <curitem> has *.lnk extension, run command #4000
if <curitem> has any other extension, or is a folder, then run command #4001

Is this script viable? What would be the syntax?

Thank you very much!

Re: Script if <curitem> is *.lnk run this command, if any other file extension or folder, run that...

Posted: 27 Sep 2019 13:37
by highend

Code: Select all

    if (exists(<curitem>) == 1 && gpc(<curitem>, "ext") LikeI "lnk") { #4000; }
    else { #4001; }

Re: Script if <curitem> is *.lnk run this command, if any other file extension or folder, run that...

Posted: 27 Sep 2019 21:35
by cadu
Thank you very much @highend