is there any way to copy all of content of CD to a folder?
I want to make an application which can detect when there is a CD in Computer, and this application call a function to copy all files from this CD to Computer.
with respect,
aRTx
WebCyb
08-31-2008, 04:20 PM
An example
-- Create a folder in the user's temp folder called "Copied Files".
Folder.Create(_TempFolder.."\\Copied Files");
--Copy all files within the Docs folder on the CD-ROM to the destination.
File.Copy("AutoPlay\\Docs\\*.*", _TempFolder.."\\Copied Files\\", true, true, false, true, nil);
--Destination folder
DestFolder = "C:\\Program Files\\WinRAR";
-- Create a folder in destination folder
Folder.Create(DestFolder.."\\Copied Files");
--Copy all files
StatusDlg.Show(MB_ICONNONE, false);
File.Copy("E:\\*.*", DestFolder.."\\Copied Files\\", true, false, false, true, nil);
File.Copy("F:\\*.*", DestFolder.."\\Copied Files\\", true, false, false, true, nil);
File.Copy("G:\\*.*", DestFolder.."\\Copied Files\\", true, false, false, true, nil);
File.Copy("H:\\*.*", DestFolder.."\\Copied Files\\", true, false, false, true, nil);
-- Check to see if the File.Copy action failed by getting it's error code.
error = Application.GetLastError();
StatusDlg.Hide();
Just first Sorce work
where is the problem?
http://www.indigorose.com/forums/showpost.php?p=47400&postcount=3
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.