1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

IsBatch conditional expression

Discussion in 'Suggestions' started by rps, Sep 3, 2017.

  1. rps

    rps

    Joined:
    Jul 6, 2008
    Messages:
    204
    Likes Received:
    3
    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.
     

Share This Page