6
5
I knew many restricted and special characters in file and folder names that impossible to use, or they can cause trouble later.
For example putting a dot at the end of the name will cause it to disappear.
Explorer itself has more restrictions, for example a dot at the beginning of filename is very hard to put.
OK, but what's wrong with at-sign @
!?
I didn't saw anywhere any restrictions about it, nor could I find it now.
See:
1) Open Windows Explorer and create a file or folder with name 1,1
2) Press F2 and rename it to @1,1
3) See? New name was cancelled.
My question is: WHY?
I tested this "feature" on XP, Win7 and Win10.
Funny thing in WinXP is that renaming 0,0
to @0,0
actually renames it to @0
.
Looks like this is internal Explorer behavior, because in CMD console it is perfectly fine to do cd.>"@1,1"
I just tried this on Windows 7, and I can’t reproduce your result — I can rename a file, with Explorer, to a name that includes
@
, with no problems. – Scott – 2017-11-04T07:04:47.143@Scott, it is somehow related to comma
,
especially if there is a numeric after it.@
must be the first character. Did you try my specific example? Hmm it also may be locale-dependent… I have Russian locale where,
is separator for real numbers (1,5 means 1 and a half, not 1.5 as in English locale). – aleksusklim – 2017-11-04T07:10:18.627I did now. I took a PNG file and renamed it to
@0,0.png
, and then to just plain@0,0
. I got the warning about changing an extension, but when I hit OK, the rename worked. (I am in USA.) – Scott – 2017-11-04T07:14:45.923@Scott, Well, I cannot create
@1,1.png
Looks like locale is related. Did you try@1,1
(since @0,0 is buggy only for XP, in Win7 and later it renames fine), or maybe you'll try@1.1
? Not sure it will show that, though. – aleksusklim – 2017-11-04T07:19:43.3601Ah, now I am getting weird results. Based on 42 seconds of testing, it looks like attempts to rename to
@1,1
silently fail (leaving the name unchanged). – Scott – 2017-11-04T07:26:18.777A "why" question like this, which is in essence asking what Microsoft's designers were thinking when they decided this, is generally very hard to answer. At the root of it, Explorer is reluctant to let you use a @ because it was designed that way. But why it was designed that way... very few people will know. – Corrodias – 2017-11-04T10:28:20.477
@Corrodias, Actually, my "why" also means "is there anything other related to this, what I also need to consider?". For example, I perfectly know what I will face if I'd use symbols like
% & ^
in filenames (good luck to manage them in CMD later...), and I know what exactly causing that problems. But here I have no idea why@
behaves so strangely, so I don't know what other use of it I should be afraid of. – aleksusklim – 2017-11-04T10:36:57.710