Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

detect when a file has been recorded in the pc

Posted on 2016-07-25
3
Medium Priority
?
68 Views
Last Modified: 2016-07-26
Hello Experts,
Our customer has this other software that takes and stores radiographies. We spoke with the software company who built it in eu but they are not interested in developing an interface or a feature to connect with our software.
We have noticed this particular imaging application stores its images in specific folders one per patient.
We started reading this folders and making copies of the images in order to upload them to our app....
Works just fine... but.....
There are too many images... and our customer continues making more....
although we copied all images its becoming harder to find the latest image stored.
 we do not want to remove alredy copied images .... so
is there any feature or finction that can detect the latest file stored in a hard disk ?
Like if we can get the list of files recently stored it wil be really fast to identify if the file is an image of our interest or not.
and much faster than reading the three thousand folders and many images inside each folder to see if there is a new image...

Or maybe I need to think out of the box? please your help
Regards,
0
Comment
Question by:RaulGM BedoyaZdP
3 Comments
 
LVL 84

Assisted Solution

by:David Johnson, CD, MVP
David Johnson, CD, MVP earned 1000 total points
ID: 41727155
files normally have a creation date. You can sort files by date.. or get a directory list and exclude files older than a specific date or today's date - x days. or you can do a two step approach.

day 0 copy files to staging folder from source folder. process files into your solution, then as each is processed, copy it to a processed folder.
Day 0 + x days .. either sort by date and only get files after a specific date/time or in your list of processed files get files that are NOT in this list.
0
 
LVL 17

Accepted Solution

by:
Gerald Connolly earned 1000 total points
ID: 41729268
Its relatively easy to scan through a directory tree and find all the files that have been created after a certain Date-Time

Here is a pointer to an example of scanning a directory in VB
https://msdn.microsoft.com/en-us/library/cahdzfxw.aspx 

You could copy the files as suggested by David, but it would be a lot simpler and faster and would not use any extra disk space to just keep track of the Date-Time of the last scan and use that as an input to your scan routine.
0
 

Author Closing Comment

by:RaulGM BedoyaZdP
ID: 41730460
Very good works justfine .
Thank you experts!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question