Jump to content

handyt2

Members
  • Posts

    3
  • Joined

  • Last visited

handyt2's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. hi experts.. I have a landing directory that receives files from other systems. some generate new filename, but some use the same filename & overwriting the old ones. every 1hr, I want my AutoIT to detect new files only into a variable. previously, I thought of running dir /b > filelist.txt, so i can compare the last hour filelist.txt with the current list.. but this can't work with files of the same names. so, I created a [work] folder, xcopy /d [landing]*.csv to [work]*.csv this command gave me the list of new files, but i need to copy the files first.. any suggestions for better ways..? --- once i have the list of new files in variable/array, i will need to loop & run other processing.. this part is not a problem with me. thanx in advance..
  2. Thanx all.. I opted for the Regexp .. i tested with a file with lots of blank lines & still works
  3. I have to process incoming files in a landing folder. I use method similar to this to detect if the file is empty, I won't process it. '?do=embed' frameborder='0' data-embedContent>> the problem is, sometimes files can contain 1 or 2 blank lines.. and i consider this empty files as well.. so what's a good method of detecting that file contains (any) number of blank lines ..? Thanx ..
×
×
  • Create New...