Solved

detect when a file has been recorded in the pc

Posted on 2016-07-25
3
35 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
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…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

757 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

19 Experts available now in Live!

Get 1:1 Help Now