Hello dagi89, The unique solution I have found to continue my project is to add a fake file which is not read by SysDirRead.
Hello everyone, My programm looking for a file name 'retain' in a folder. To do it I'm using SysDirOpen to open folder directory then I'm using SysDirRead to listing files. But at everytime, SysDirRead miss the first file in the directory. I don't know why. Have you any idea ? Below the part of my code : VAR_GLOBAL stDirHandle : SysDir.RTS_IEC_HANDLE; (* Folder path result *) stResultRead: SysDir.RTS_IEC_RESULT; (* Stock Runtime error code of SysDirRead *) stmaxNumbrebyteDir: DINT := 200; (* Max...