Delphi get list of files in directory




















Either look for directory changes , or prepare to enumerate all again and again and filter by in your case filetime. DavidHeffernan Your proposed solution is useful for real time monitoring of directory changes. But OP is interested in files added since the last check by date. This means that OP application isn't running all the time meaning your solution won't work for him.

Show 2 more comments. Active Oldest Votes. Types, System. HeartWare HeartWare 6, 2 2 gold badges 24 24 silver badges 29 29 bronze badges. Actually, both. I have a service constantly running that needs to monitor the directory, and if new files are found, it started an application to process the new files.

Add a comment. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Making Agile work for data science. Stack Gives Back Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually.

Related Hot Network Questions. Johan Omair Iqbal Omair Iqbal 1, 1 1 gold badge 25 25 silver badges 40 40 bronze badges. Good option but I am not using delphi GetFiles accepts an additional argument the first one is the folder with file mask, were one can get files e. I'm using Delphi XE4 still! Add SR. Free; end; end; end;. Your answer helps me. How to sort the list by the date of the files? FindFirst is quite outdated. Why not TDirectory.

I am not selecting a directory but a file.. In that case, CaldonCZE has the answer. Ondra C. Execute then FileListBox1. Petrus Petrus 59 5 5 bronze badges. Uses System. Marcelo Fortes Marcelo Fortes 1 1 1 bronze badge.

Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.

Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Making Agile work for data science. Stack Gives Back



0コメント

  • 1000 / 1000