Done IsBatch conditional expression


Jul 6, 2008
Add IsBatch to build-in Conditional expression tests like the IsAlias. Also consider a native function @batch[name] that performs a search and validation that a supplied file name is a batch file. Such as Batch=`%@if[%@ext[%@search[%1]] eq btm .or. %@ext[%@search[%1]] eq bat,1,0]`. This would allow entry of file names with or without extensions. Adding an INI directive to define what extensions are considered batch files. BATEXT=bat,btm would be good. example: %@batch[bathlp] yields a 1 for True and 0 for False.
Aug 23, 2010
What use this could have? I can see a test for %PATHEXT%, but this is far from "batch" in the sense of "CMD/TCC script".