

Files_Selected = Dialog.FileBrowse(true, "Locate File", _DesktopFolder, "All Files (*.*)|*.*|", "", "dat", true, false); if (Files_Selected[1] ~= "CANCEL") then DestFolder = _SourceFolder.."\\AutoPlay\\Docs\\"..Unit..EP for j in pairs (Files_Selected) do StatusDlg.Show(MB_ICONNONE, false); File.Copy(Files_Selected[j], DestFolder, true, true, false, true, nil); end error = Application.GetLastError(); StatusDlg.Hide(); if error ~= 0 then Dialog.Message("Error", "There was an error copying the files. Please try again.", MB_OK, MB_ICONEXCLAMATION, MB_DEFBUTTON1); else Dialog.Message("Congrats", "Files Are Successfuly Copied", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1); end end
Leave a comment: