Recent

Author Topic: Search exe files in a directory  (Read 3514 times)

mrkaban

  • Jr. Member
  • **
  • Posts: 60
    • КонтинентСвободы
Search exe files in a directory
« on: February 15, 2017, 06:16:38 pm »
Hello, friends! Thank you very much for that earlier helped me!

Just I want to ask for forgiveness, because I'm new and do not know much English.

Prompt please, on the Internet a lot of options, but they can not understand. They have a lot to Delphi and consist of several procedures and functions. Novice is difficult to understand.

I need to find all the exe files in the specified directory, and then add them to a TStringList.

Thanks in advance for any help!

PS: an open-source project.

derek.john.evans

  • Guest
Re: Search exe files in a directory
« Reply #1 on: February 15, 2017, 06:37:39 pm »
Google "FreePascal find files"
=
http://wiki.freepascal.org/findallfiles

Magic

Handoko

  • Hero Member
  • *****
  • Posts: 5158
  • My goal: build my own game engine using Lazarus
Re: Search exe files in a directory
« Reply #2 on: February 15, 2017, 06:42:15 pm »
@mrkaban

I saw your post on:
http://forum.lazarus.freepascal.org/index.php/topic,35090.msg231538.html

You now should already have the code. If the code is not working, you should show us the code you have, so we can help you fix the bug.

mrkaban

  • Jr. Member
  • **
  • Posts: 60
    • КонтинентСвободы
Re: Search exe files in a directory
« Reply #3 on: February 15, 2017, 07:08:19 pm »
Google "FreePascal find files"
=
http://wiki.freepascal.org/findallfiles

Magic

Thank you so much!!! I will understand, this example is very simple.

@mrkaban

I saw your post on:
http://forum.lazarus.freepascal.org/index.php/topic,35090.msg231538.html

You now should already have the code. If the code is not working, you should show us the code you have, so we can help you fix the bug.
Indeed, I have already asked about the file search. Excuse me please, but I have not figured out with him. As a result, I postponed for an indefinite time, and now all differently decided to do.

mrkaban

  • Jr. Member
  • **
  • Posts: 60
    • КонтинентСвободы
Re: Search exe files in a directory
« Reply #4 on: February 15, 2017, 07:46:41 pm »
Simple as that! Thank you very much! I'm a long time trying to solve a simple problem!

Everything works as it is necessary! Thank you so much!

 

TinyPortal © 2005-2018