Solved

detect when a file has been recorded in the pc

Posted on 2016-07-25
3
52 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 81

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 17

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

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

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

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…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

734 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