Right now, I’m developing a winform system.I want to filter word temp file or temp filename.When someone open a word file ,in my system he will see the temp file .
And then doing some operation with temp file, the system will throw an Exception .
I just want filter the file and don’t throw the Exception .
This worked for me:
You can also add limiting by file name prefix: