J
Jake
Help...
How do I delete a file / folder in XP which has a trailing space...?
regards jake
How do I delete a file / folder in XP which has a trailing space...?
regards jake
How do I delete a file / folder in XP which has a trailing space...?
Jake said:Help...
How do I delete a file / folder in XP which has a trailing space...?
regards jake
Pegasus said:AFAIK, Windows allows file or folder names with *embedded* spaces but not with *trailing* spaces.
How exactly did you work out that you had a name with a trailing space?
a said:Huh? Of course files and folders can have spaces at their start or end.
By seeing the blank space in the focus rectangle when selected.
AFAIK, Windows allows file or folder names with *embedded* spaces but
not with *trailing* spaces. How exactly did you work out that you had a
name with a trailing space?
Andrew McLaren said:With respect ... actually, NTFS has no problem creating a file with a
trailing space in the name. However Windows Explorer, CMD.EXE and
OS-supplied utilities will usually trim any trailing spaces from a file
name when they manipulate a file. So, yes: a trailing space is rare. But
any app can decide to do:
hFile = CreateFile("My funnny file " // file name
<...> // other params
FILE_ATTRIBUTE_NORMAL, // normal file
NULL);
...and create a file with a trailing space in its name.
Trailing spaces are explicitly deprecated in the Windows SDK's file naming
convention guidelines; but there's nothing to actually stop someone from
doing it.
You are correct that the U+00A0 "No break space" char can also look like a
space, and is indeed legal at the end of file names.
Apologies for being a pedantic pain-in-the-butt, but ... I get all
pedantic, sometimes![]()
Help...
How do I delete a file / folder in XP which has a trailing space...?
regards jake
Pegasus said:This can be deceptive. The white space could be $FF. It looks the same as a space but it isn't.
Jake said:Help...
How do I delete a file / folder in XP which has a trailing space...?