Solved

detect when a file has been recorded in the pc

Posted on 2016-07-25
3
38 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:rguillermo
3 Comments
 
LVL 78

Assisted Solution

by:David Johnson, CD, MVP
David Johnson, CD, MVP earned 250 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 16

Accepted Solution

by:
Gerald Connolly earned 250 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:rguillermo
ID: 41730460
Very good works justfine .
Thank you experts!
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

920 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now