Results 1 to 4 of 4

Thread: Finding the highest number in a directory... STILL UNRESOLVED

Threaded View

  1. #1

    Thread Starter
    Fanatic Member VisionIT's Avatar
    Join Date
    Nov 2002
    Location
    Workin'...
    Posts
    718

    Finding the highest number in a directory... STILL UNRESOLVED

    We are currently building a package which places each estimate number into a file like this...

    c:\estimates\1.txt
    c:\estimates\2.txt
    c:\estimates\3.txt
    etc.

    I have programmed a listview to read-in all the files in the estimates directory... but you have to give it a number from at to... IE.

    For Intx = 0 to 25000

    The question being... how can i search the directory for the highest number of file to that number can replace the 25000 in the example. The trouble is, when the user enters a number 25001... it won't find it.

    I can't set the number to 10000000 before anyone asks....as it would take weeks to open the program.

    Any help would be much appeciated.

    Regards,

    Paul.
    Last edited by VisionIT; Feb 6th, 2003 at 04:43 AM.

Posting Permissions

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



Click Here to Expand Forum to Full Width