The easiest way would be just make sure your file name adhere to Windows OS file-naming restriction.Here is a list of illegal characters in Windows file names (in bold):
– / ? < > \ : * | “.
– Also illegal is any character you can type with the Ctrl key.
– Under the FAT file system, the ^ symbol is illegal.
– You also cannot place a space or period at the end of the file names under Windows.
– Windows also reserves the following file names: com1, com2, com3, com4, com5, com6, com7, com8, com9, lpt1, lpt2, lpt3, lpt4, lpt5, lpt6, lpt7, lpt8, lpt9, clock$, con, nul, and prn.
Reference: Delete-Me-Not Files- Be Gone! | PCLinuxOS Magazine