Hi, All,
I did additional tests, especially regarding characters allowed with or without quotes !
Although practically any character can be put within a file name when using the rename option of the Explorer, it happens that, under DOS, it is safer to surround the filename with double quotes when you insert most of the allowed symboles
So, here is an updated version of my information part :
Syntaxes / Chars ALWAYS forbidden : \x00-\x1F " * / : < > ? \ | \x7F
: . at the END of file name
: SPACE at the END of file name
: ALL DOTS file name
: PRN AUX NUL
: COM1 COM2 com3 COM4 COM5 COM6 COM7 COM8 COM9 COM¹ COM² COM³
: com1 com2 com3 com4 com5 com6 com7 com8 com9 com¹ com² com³
: LPT1 LPT2 LPT3 LPT4 LPT5 lpt6 LPT7 LPT8 LPT9 LPT¹ LPT² LPT³
: lpt1 lpt2 lpt3 lpt4 lpt5 lpt6 lpt7 lpt8 lpt9 lpt¹ lpt² lpt³
Chars allowed WITHIN double quotes : ! % & ' ( ) + , ; = [ ] ^ ` { } ~
: SPACE when at BEGINNING of file name
Chars allowed WITHOUT double quotes : # $ - @ _
: . if NOT at END of file name
: SPACE if NOT at BEGINNING or END of file name
You’ll note that my regex, described in my previous post, allows most of the symbols, even without quotes, as they, generally, can be inserted when using the Explorer !
BR
guy038