Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Done IsBatch conditional expression

Jul
441
6
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.
 
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".
 
Back
Top