I'm looking for c# code to delete reports in the [local] Project Files Folder on the HMI. Can anyone help?

The project was designed for users to FTP the files off of the unit but when they fail to do so the unit fills up and falls over, so it would be good to delete reports if too much of the hard disk is used.

This would delete the oldest files in the project files directory that match the file pattern "Record_*.txt" so only 10 such files remain.I call this function every time before I create a new file in the directory.

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum