Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2006
    Posts
    17

    How to copy content of CD to a Folder?

    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

  2. #2
    Join Date
    Oct 2007
    Posts
    44
    An example

    Code:
    -- 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);

  3. #3
    Join Date
    Sep 2006
    Posts
    17

    Where is the problme? Just first source work

    --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?

  4. #4
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959

Similar Threads

  1. Possible to use Folder Copy but omitt a folder nestled within?
    By Desrat in forum AutoPlay Media Studio 6.0
    Replies: 5
    Last Post: 04-05-2007, 08:10 AM
  2. Function to Copy a Folder, Sub-folders and files
    By Worm in forum AutoPlay Media Studio 5.0
    Replies: 50
    Last Post: 05-06-2006, 07:49 AM
  3. Folder copy
    By doohoodogg in forum AutoPlay Media Studio 6.0
    Replies: 1
    Last Post: 04-30-2006, 05:37 PM
  4. Copy file from HDD to docs folder
    By wedgea09 in forum AutoPlay Media Studio 6.0
    Replies: 8
    Last Post: 04-18-2006, 03:04 PM
  5. cookies
    By goukilord10 in forum AutoPlay Media Studio 5.0
    Replies: 6
    Last Post: 05-20-2005, 04:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts