| AppCtrlScript | |
| Help |
|
Applies to |
AppCtrlScript (Module: wmACScr1.dll) |
|
Group |
Other |
|
See also |
FOREACHIN, FOREACHFILE, FOREACHLINEINFILE, WHILE, EXITLOOP |
Runs the specified sub for each file that can be found in the specified folder.
The following parameters are passed to the sub:
PAR1: Fullname of the folder
PAR2: Fullpath of the parent folder (without last "\")
PAR3: Foldername without path
PAR4: Index (starting with 1)
PAR5: Total number of found folders
Use the EXITLOOP command to exit the loop from within the processed subroutine.
FOREACHFOLDER <Folder>, <SubName>[, <Pattern>][, <SubFolders>][, <MaxFolders>]
|
Part |
Description | |
| <Folder> | Folder name to search for subfolders. | |
| <SubName> | Subroutine to perform for each found file. See SUB for details on subroutines. | |
| <Pattern> | Optional file mask to filter only wanted folders. Default is "*" | |
| <SubFolders> | Optional 0 or 1, if 1 then subfolders are processed also. | |
| <MaxFolders> |
optional if greater than zero, then the maximum of searched folders is set to a limit of <MaxFolders>. The default is 0 which is equal to no limit. | |
|
| ||