The GetFileList function is useful for getting the list of files within a particular folder, but what I want to do currently is to also look for certain files in sub-folders, so for example, I want to look for all PNG files in a designated folder and any folders within the folder. What is the best way to do this?
Thanks for reading.
Get File List, including files in subfolders
Moderators: Dorian (MJT support), JRL
Re: Get File List, including files in subfolders
I know there are other ways but I like to use DOS dir.
Code: Select all
Let>RP_Wait=1
Let>RP_Windowmode=0
RunProgram>cmd /c dir c:\designated Folder\*.png /s /b > %temp_dir%\MyFiles.txt
ReadFile>%temp_dir%\MyFiles.txt,vData
DeleteFile>%temp_dir%\MyFiles.txt
MDL>vData