Official Soldat Forums

Server Talk => Scripting Discussions and Help => Topic started by: Savage on September 15, 2016, 06:16:22 am

Title: Find all files
Post by: Savage on September 15, 2016, 06:16:22 am
Is it possible to find all files names from directory and put them into TStringList? Something like this http://wiki.freepascal.org/FindAllFiles would be nice.
Title: Re: Find all files
Post by: Mighty on September 15, 2016, 07:46:55 am
To my knowledge, no
Title: Re: Find all files
Post by: Savage on September 15, 2016, 08:38:00 am
Maybe some DLL but it's not that necessary for me ;P
Title: Re: Find all files
Post by: Falcon` on September 15, 2016, 11:22:38 am
There's no such thing in scriptcore, I'm afraid you'll need to write your own dll to get that.
Title: Re: Find all files
Post by: soldat-game on October 01, 2016, 02:36:12 pm
safemode off
jotemi stosował kiedys te funkcje do usówania plikow takie cos do wywoływania cmd ale nie pamietam jak ta funkcja sie zwała
dir /b > allfiles.txt
CreateTablle in scriptcore
Delete(FILE) (usun pliczek)