motoburn
Member
I have a strange and somewhat irritating situation.
I need to import data from files generated by a 3rd party program which scans our inventory as it passes through the production line.
This program, rather than inserting the data into a backend db or even a log file, creates a series of .asc files per item that passes.
I originally intended to watch that folder and move new additions to a temp location, import to our db, then move to a final resting place for archiving. As it turns out, i cannot move these files, because the program checks this directory to perform a few critical functions (
1. the file name serves as a primary key to ensure item ID's are not duplicated...
2. when running a sequential set, it auto-increments from the last file created.
)
Since I cannot move the files, is it possible through System.File.IO or some other means to copy files to a temp location, run my imports, then move to the final location then continue to watch this directory, and only move files to the temp location that do not yet exist in the final directory?
This whole thing seems absurd, but I need the data, and the writers of the program will not provide us with a real data file to query against, nor will they allow me the source files to write our own solution.
Any help or direction to a solution for this is MUCH appreciated.
Thank you,
Chris
p.s. sorry for the long abstract post.
I need to import data from files generated by a 3rd party program which scans our inventory as it passes through the production line.
This program, rather than inserting the data into a backend db or even a log file, creates a series of .asc files per item that passes.
I originally intended to watch that folder and move new additions to a temp location, import to our db, then move to a final resting place for archiving. As it turns out, i cannot move these files, because the program checks this directory to perform a few critical functions (
1. the file name serves as a primary key to ensure item ID's are not duplicated...
2. when running a sequential set, it auto-increments from the last file created.
)
Since I cannot move the files, is it possible through System.File.IO or some other means to copy files to a temp location, run my imports, then move to the final location then continue to watch this directory, and only move files to the temp location that do not yet exist in the final directory?
This whole thing seems absurd, but I need the data, and the writers of the program will not provide us with a real data file to query against, nor will they allow me the source files to write our own solution.
Any help or direction to a solution for this is MUCH appreciated.
Thank you,
Chris
p.s. sorry for the long abstract post.
Last edited: