This is what I have at the moment (based on another forum post)
Code: Select all
Let>INPUT_BROWSE=2
Input>Mp3Folder,Please select folder containing MP3 files,
CountFiles>%Mp3Folder%,nCount,0
GetFileList>%Mp3Folder%\*.mp3,FileList,|
Separate>FileList,|,FileArr
Let>LargestFile=FileArr_1
FileSize>FileArr_1,nFileSize
Let>LargestFileSize=nFileSize
Let>cnt=1
Repeat>cnt
FileSize>FileArr_%cnt%,nFileSize
If>nFileSize>LargestFileSize
Let>LargestFile=FileArr_%cnt%
Let>LargestFileSize=nFileSize
Endif
Let>cnt=cnt+1
Until>cnt,FileArr_Count
//Let>MaxByteSize=74882000
If>LargestFileSize>MaxByteSize
MDL>The file %LargestFile% might be longer than 78 Minutes. Please check.
Else
MDL>There are no files longer than 78 Minutes.
Endif
I can't work out how to get it to give me the names of all files that are above that size. The number of files in the source directory is never known in advance and will probably be different each time it's run.
I can't work out whether I should be trying to make FileSize> only look at files above the MaxByteSize or to capture the file size of every file and then compare each against the MaxByteSize