Automatic file segregation

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • deepakthegeek
    New Member
    • Nov 2008
    • 5

    Automatic file segregation

    Hi,

    I have a folder which contains about 25 files, pdf files(25 files) as well as text files (25 files) with the same name but with .pdf and .txt extensions. These text files are actually OCR output of the pdf files. I need to open each text file, search for a specific word or phrase and then move the pdf file with the corresponding name to a different location. Then open the next file perform the operation all over again and then go on to the next file, till the last file. I don't want to manually open each file and do the required. I need to make it happen automatically. Can someone please help me, its very urgent.
  • rpicilli
    New Member
    • Aug 2008
    • 77

    #2
    Hi,

    You already knows what to do. Open the text file, read it line by line or at once, look for the information you need (I think there is some kind of "name" or "code") that you know is there.

    Based on the information read by your programs, send to file to where it belongs.

    If you're having trouble to code, put the code that you create in this forum to be analized.

    I hope this help you

    Rpicilli

    Comment

    • debasisdas
      Recognized Expert Expert
      • Dec 2006
      • 8119

      #3
      1.read the text file
      2.search for the desired key word.
      3.move the PDF file to the target location using FileSystemObjec t.

      continue step 1 with next text file till you have no more file left to process

      Comment

      Working...