I have created a script with the Loop,Files command which scans a folder for all its files and depending on the ext/name of each file, it processes it accordingly.
I am doing only one Loop and use an if statement for each situation. Most of the if statements have this syntax:
Code: Select all
if (A_LoopFileExt in %File_Types%)
But I dont know how to write the if statement for the files with filename which conform to either of the two pattern criteria:
the * here is a random number
the first * is a random number, the second * is random letters,numbers and characters. it also deosnt have an extension.
I know I can use two loops with their own file patterns and look specifically for those files, but I want to avoid that since I am already doing one Loop for all files.
How do I code this, do I use contains, InStr, regex, etc?