Assuming runfolder is required, the following result was found.
!= GuiControl,, MyInternalFile, %v_SelectedInternalFile% Return GenerateAttachments: FileCreateDir, %v_RunFolder%\Attachments GuiControlGet, v_FolderToSearch, , MySelectedFolder v_FilesCopied := 0 v_FilesTotal := 0 ; attachments csv headings v_CsvLine...