4090987414711
08-11-2007, 01:17 PM
Hi and sorry for being so stuppid here, but why wont the following code work :
StatusDlg.Show(MB_ICONNONE, false);
StatusDlg.ShowCancelButton(true, "Cancel");
File.Copy(_SourceDrive.. "\\DCIM\\100CAMEA\\*.*", "D:\\Backup\\DigiCam\\", true, true, true, true, nil);
error = Application.GetLastError();
StatusDlg.Hide();
if error ~= 0 then
result = Dialog.Message("Error", "There was an error copying the files to your system. Please try again.", MB_OK, MB_ICONEXCLAMATION, MB_DEFBUTTON1);
else
--it was sucessful!!
end
I get the following error:
There was an error copying files to your system"
Sorry again & help greatfully recieved :)
StatusDlg.Show(MB_ICONNONE, false);
StatusDlg.ShowCancelButton(true, "Cancel");
File.Copy(_SourceDrive.. "\\DCIM\\100CAMEA\\*.*", "D:\\Backup\\DigiCam\\", true, true, true, true, nil);
error = Application.GetLastError();
StatusDlg.Hide();
if error ~= 0 then
result = Dialog.Message("Error", "There was an error copying the files to your system. Please try again.", MB_OK, MB_ICONEXCLAMATION, MB_DEFBUTTON1);
else
--it was sucessful!!
end
I get the following error:
There was an error copying files to your system"
Sorry again & help greatfully recieved :)