How do I check if a given string is a legal/valid file name under Windows?

后端 未结 27 1708
-上瘾入骨i
-上瘾入骨i 2020-11-22 09:38

I want to include a batch file rename functionality in my application. A user can type a destination filename pattern and (after replacing some wildcards in the pattern) I n

27条回答
  •  迷失自我
    2020-11-22 10:15

    Also the destination file system is important.

    Under NTFS, some files can not be created in specific directories. E.G. $Boot in root

提交回复
热议问题