Delete a file with a filemask

One Star

Delete a file with a filemask

Hi,
I have a bunch of files in a directory, and I need to delete only one of them:
aaaa.txt
bbbb.txt
cccc.txt
How can I only delete cccc.txt?
I tried using tSystem, and "rm c*.txt", but it does not work. It says no such file or directory.
It does not seem to like asterisks....
Let me know,
Thanks,
Boris
Seven Stars

Re: Delete a file with a filemask

You can use tFileList to get the file names using a wild-card character and then iterate to tFileDelete.