Page 1 of 1
Windows unable to store a file with . period suffix
Posted: Wed Nov 30, 2022 1:15 pm
by Oso
Something I saw on a Google group that interested me — Windows cannot store a filename ending with a period. It's thought to be a remnant from the old 8.3 filename limitation. Is this really the reason? I find it odd because filenames can contain periods within the first part of the name. Here is the test...
Code: Select all
ECHO xx > aa. <------- Make sure to add the appended period
DIR Note how the period has been lost
TYPE aa There is your data!
I do a lot of work between Linux and Windows and transfer files between them using Samba. I just noticed that if I open the Samba share in Windows and copy a file with a period on the end (which is perfectly acceptable in Unix), Windows throws a tantrum and corrupts the filename to...
Re: Windows unable to store a file with . period suffix
Posted: Wed Nov 30, 2022 2:15 pm
by Marc56us
Oso wrote: Wed Nov 30, 2022 1:15 pm
Something I saw on a Google group that interested me — Windows cannot store a filename ending with a period. It's thought to be a remnant from the old 8.3 filename limitation. Is this really the reason? I find it odd because filenames can contain periods within the first part of the name. Here is the test...
Code: Select all
ECHO xx > aa. <------- Make sure to add the appended period
DIR Note how the period has been lost
TYPE aa There is your data!
I do a lot of work between Linux and Windows and transfer files between them using Samba. I just noticed that if I open the Samba share in Windows and copy a file with a period on the end (which is perfectly acceptable in Unix), Windows throws a tantrum and corrupts the filename to...
Edit
smb.conf
Add in
[global]
Restart Samba (or wait 1 min)
Code: Select all
# killall smbd
# killall nmbd
# smbd -D
# nmbd -D
(Z: is a mapped drive to my Linux)
But that doesn't solve everything. Generally speaking, avoid files that end with a dot.

Re: Windows unable to store a file with . period suffix
Posted: Wed Nov 30, 2022 3:12 pm
by Oso
Marc56us wrote: Wed Nov 30, 2022 2:15 pm
Edit
smb.conf
Add in
[global]
Yes,
mangled names = no shows the file in the share under a Windows client. Windows reluctantly displays it but will not open it....
Cannot option file "test" for read access. The system cannot find the file specified.