Hi,
I'm trying to copy files and folder from one location to other and provide a log file of files copied. The copy code works fine, just not sure how to get it to a text file. Can someone point me in the right direction? Thanks
I'm trying to copy files and folder from one location to other and provide a log file of files copied. The copy code works fine, just not sure how to get it to a text file. Can someone point me in the right direction? Thanks
Code:
StatusDlg.Show(MB_ICONNONE, false); --copy = File.Copy("E:\\genesis\\backups\\*.*", "Z:\\backup\\genesis", true, true, false, true, nil); -- Check to see if the File.Copy action failed by getting it's error code. error = Application.GetLastError(); StatusDlg.Hide(); -- If it failed (not equal to 0), display a dialog informing the user. if error ~= 0 then result = Dialog.Message("Error", "There was an error backing up the files. Please try again.", MB_OK, MB_ICONEXCLAMATION, MB_DEFBUTTON1); else Dialog.TimedMessage("Notice", "Files Copied.", 5000, MB_ICONINFORMATION); end
Comment