Hello,
i would like to get a list of all files in a specific folder.
Something like:
Code
ROUTINE Get_Files(folder: STRING): ARRAY OF STRING
VAR
all_files : ARRAY[50] OF STRING[50]
BEGIN
--get the first 50 files of the folder(parameter of this function)
--write list to all_files
RETURN (all_files)
END Get_Files
I need this because i want to delete/recreate some folders. But the content of the folders is unknown. Maybe there are some files. Maybe not.
I use
Code
KCL('RMDIR fr:\data\d1',STATUS)
KCL('RMDIR fr:\data\d2',STATUS)
KCL('RMDIR fr:\data\d3',STATUS)
to delete the folders.
Thank you very much