Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 3 of 3

Thread: File Copy Count

  1. #1
    Join Date
    Apr 2001
    Location
    Haverhill, Suffolk, UK
    Posts
    360

    File Copy Count

    Is there a function similar to Zip.GetContents that will tell me the count of files in a folder tree? I thought there was but maybe I am confused with a competing product (wash my mouth out )

    Basically I want to include the file x of y text in a callback being used to backup one folder to another as there are over a 1000 files to copy. The progress bars are OK but the users are complaining the bars move too slowly on the overall progress line even though the single file progress zips along.

    Thanks - John

  2. #2
    Join Date
    May 2000
    Location
    Indigo Rose Software
    Posts
    2,150
    I don't think there is a similar function for files. You could use a File.Find() and then a Table.Count() to get the number of files but you would need to keep an eye on performance.

    Adam Kapilik

  3. #3
    Join Date
    Apr 2001
    Location
    Haverhill, Suffolk, UK
    Posts
    360
    Thanks Adam,

    That was the one I was looking for - I kept typing in a Visual Basic command and wondering why it did not work - I must try better in future.

    I triied with 1200+ files and performance was fine primarily because I'm not using any callbacks in the File.Find, no recursion and purely searching for *.*.

    Rgds John

Similar Threads

  1. Best way to share custom buttons with the group?
    By mwreyf1 in forum AutoPlay Media Studio 6.0
    Replies: 10
    Last Post: 04-28-2010, 01:29 PM
  2. Error 3038: Could not seek in compressed file
    By Rikard in forum Setup Factory 7.0
    Replies: 2
    Last Post: 05-25-2006, 11:55 AM
  3. Can search allow manual browse even if file is found?
    By RichardShaw in forum Setup Factory 5.0
    Replies: 2
    Last Post: 08-28-2000, 06:08 PM
  4. Replies: 0
    Last Post: 08-17-2000, 02:29 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