I am trying to copy files from my cd to the hard drive. Here is what I have so far:
result = Dialog.Message("Notice", "Would you like to install your customized company database?", MB_YESNO, MB_ICONINFORMATION, MB_DEFBUTTON1);
if (IDYES) then
File.Copy("Directmail & Attachments\\Attachments.dat", "C:\\Quantum\\Data\\", true, false, false, true, nil);
File.Copy("Directmail & Attachments\\directmail.mdb", "C:\\Quantum\\Data\\", true, true, false, true, nil);
File.Copy("Hvac\\Database\\HVAC01.DAT", "C:\\Quantum\\Data\\", true, false, false, true, nil);
end
result = Dialog.Message("Notice", "Database Files Installed Successfully.", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
I need for it the code to detect if all 3 files already exist and and not copy the ones that do exist and copy the ones that don't. Then give a dialog message that tells the user which files existed and that the system can not copy them. If none of the files exist then I would just like a dialog message that says "Database Files Installed Sucessfully".
Hope someone can help me with this.
Thank you guys.
AMy

