04-15-2013 12:58 AM
Hi,
I would like to access latest file in a folder based upon time stamp in the file properties. Can anybody help me in this regard.
Regards,
Visuman
04-15-2013 03:04 AM - edited 04-15-2013 03:06 AM
04-15-2013 03:07 AM
Hey,
I hope this solves your problem.
If you have any questions, just ask them 🙂
Greetz, Bart
P.S. the solution is in the attachment 🙂
04-15-2013 03:10 AM
04-15-2013 03:12 AM
04-15-2013 09:45 AM - edited 04-15-2013 09:45 AM
@Bart_Aerts wrote:
Cleanup button was used,
I could well believe it. Clean up can commonly un-clean a diagram!
note that your output "element" will just be the latest filename, not the filepath. As you don't provide the path as an input, but generate it internally from a dialog, the path is therefore lost when calling this code as a subVI, so you should also provide the root path as an output. And rename 'element' to 'filename' and 'max value' to 'timestamp' perhaps.