Windows 10 Pro version 21H2 OS build 19044.2604
The help text from "dir /?" says that the /X option will display the
short name in a column before the long name, or blanks if there is no
8.3 short name.
I did "dir /a:d /x" (without quotes) to list subfolders of a
directory, and the column for short names was blank.
Does that mean that long file and directory names are no longer
accompanied by short names, or is there some way I can access the
hidden shortnames?
Windows 10 Pro version 21H2 OS build 19044.2604
The help text from "dir /?" says that the /X option will display the
short name in a column before the long name, or blanks if there is no
8.3 short name.
I did "dir /a:d /x" (without quotes) to list subfolders of a
directory, and the column for short names was blank.
Does that mean that long file and directory names are no longer
accompanied by short names, or is there some way I can access the
hidden shortnames?
Windows 10 Pro version 21H2 OS build 19044.2604
The help text from "dir /?" says that the /X option will display the
short name in a column before the long name, or blanks if there is no
8.3 short name.
I did "dir /a:d /x" (without quotes) to list subfolders of a
directory, and the column for short names was blank.
Does that mean that long file and directory names are no longer
accompanied by short names, or is there some way I can access the
hidden shortnames?
On 2/16/23 20:41, this is what Stan Brown wrote:
Windows 10 Pro version 21H2 OS build 19044.2604
The help text from "dir /?" says that the /X option will display the
short name in a column before the long name, or blanks if there is no
8.3 short name.
I did "dir /a:d /x" (without quotes) to list subfolders of a
directory, and the column for short names was blank.
Does that mean that long file and directory names are no longer
accompanied by short names, or is there some way I can access the
hidden shortnames?
Try just dir /x
What happens then.
Creating shortnames automatically was something of a mess. To get the >filename under 8 characters often requires squashing it which meant >truncating the filename, and appending a tilde (~) character and a
number, like in PROGRA~1 and PROGRA~2, but how would you know which >long-named folder was for ~1 and for ~2 by just looking at the
shortnames? The shortnames was to accomodate the ancient and limited
number of characters allowing in filenames back in the DOS days. You
still use [MS|IBM]DOS?
Stan Brown <the_stan_brown@fastmail.fm> wrote:
Windows 10 Pro version 21H2 OS build 19044.2604
More likely you turned off short-name generation, formatted without the
/s option, or the drive was pre-formatted for you without shortname
support.
https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/fsutil-8dot3name
For example:
fsutil 8dot3name query
won't tell you much, but (assuming your command shell opens with C:\ as
the default folder):
fsutil 8dot3name query c:\windows
will show if 8.3 filenaming is enabled or not (on that folder, not on
the subfolders). Back in the days of old, when dinosaurs still roamed
the Earth (i.e., Windows XP and 2000), the default for the NtfsDisable3dot3NameCreate registry value was 0 meaning not to enable
the disable (it's a negative registry entry) on generating short
filenames in the MFT along with the long filenames. See:
https://guyrleech.wordpress.com/2014/04/15/ntfs-8-3-short-names-solving-the-issues/
Sometimes 8.3 filenaming is disabled for security reasons. Operations
that move or rename lots of folder would get slowed in having to create
new folders with both long and short names when only the long name was
needed (which, by the way, can still be formatted like a shortname).
As noted in the first article, most users omit the /s:<state> (where
<state> is 0 to enable or 1 to disable) argument in a 'format' command.
So, they end up formatting the file system with the shortname state
disabled (the default if /s is omitted).
Creating shortnames automatically was something of a mess. To get the filename under 8 characters often requires squashing it which meant truncating the filename, and appending a tilde (~) character and a
number, like in PROGRA~1 and PROGRA~2, but how would you know which long-named folder was for ~1 and for ~2 by just looking at the
shortnames? The shortnames was to accomodate the ancient and limited
number of characters allowing in filenames back in the DOS days. You
still use [MS|IBM]DOS?
VanguardLH <V@nguard.LH> wrote:
Creating shortnames automatically was something of a mess. To get the >>filename under 8 characters often requires squashing it which meant >>truncating the filename, and appending a tilde (~) character and a
number, like in PROGRA~1 and PROGRA~2, but how would you know which >>long-named folder was for ~1 and for ~2 by just looking at the
shortnames? The shortnames was to accomodate the ancient and limited >>number of characters allowing in filenames back in the DOS days. You
still use [MS|IBM]DOS?
At the opposite end of the filenaming spectrum, we not only have a
default 260-character filename limit, but we also have ways to bypass
that limit to get even longer filenames.
A blank column where the short names would have been in Windows 7.
VanguardLH wrote:
I find programs that use excessively long paths are due to bad coding by
lazy programmers that cannot cogitate a shorter path name.
On the other hand, programs that accommodate to _users'_ long paths
are a good thing, IMHO. Robocopy will accept long paths, for
instance, up to "almost 32,000" characters, unless you use the /256
option to limit paths. No registry change is required, so it must be
using a different mechanism.
Char Jackson <none@none.invalid> wrote:
VanguardLH <V@nguard.LH> wrote:https://knowledge.autodesk.com/support/autocad/learn-explore/caas/sfdcarticles/sfdcarticles/The-Windows-10-default-path-length-limitation-MAX-PATH-is-256-characters.html
"Starting in Windows 10 (Version 1607), the MAX_PATH limitations have
been removed from Common Win32 file and directory functions. To use the
new extended path behavior, you must opt-in by using a registry key
change."
So what program you use, and depending on which file I/O API it uses, or defining the registry entry will determine max path length is supported.
I find programs that use excessively long paths are due to bad coding by
lazy programmers that cannot cogitate a shorter path name.
I did "dir /a:d /x" (without quotes) to list subfolders of a
directory, and the column for short names was blank.
dir /ad
dir /a-d
dir /a:d
dir /X--
Stan Brown <the_stan_brown@fastmail.fm> wrote:
VanguardLH wrote:
I find programs that use excessively long paths are due to bad coding by >> lazy programmers that cannot cogitate a shorter path name.
On the other hand, programs that accommodate to _users'_ long paths
are a good thing, IMHO. Robocopy will accept long paths, for
instance, up to "almost 32,000" characters, unless you use the /256
option to limit paths. No registry change is required, so it must be
using a different mechanism.
Perhaps due to using the Unicode file I/O API (maximum total path length
of 32,767 characters) mentioned in the Microsoft article.
The /X switch shows a file's short name when the long name doesn't comply with 8.3 naming rules.
dir /X
On Fri, 17 Feb 2023 11:25:52 -0600, VanguardLH wrote:
Stan Brown <the_stan_brown@fastmail.fm> wrote:
VanguardLH wrote:
I find programs that use excessively long paths are due to bad coding by >>>> lazy programmers that cannot cogitate a shorter path name.
On the other hand, programs that accommodate to _users'_ long paths
are a good thing, IMHO. Robocopy will accept long paths, for
instance, up to "almost 32,000" characters, unless you use the /256
option to limit paths. No registry change is required, so it must be
using a different mechanism.
Perhaps due to using the Unicode file I/O API (maximum total path length
of 32,767 characters) mentioned in the Microsoft article.
But then it seems odd they would say "almost 32,000"characters rather
than "over 32,000" or "about "32,000"or even "32,767".
Stan Brown <the_stan_brown@fastmail.fm> wrote:
On Fri, 17 Feb 2023 11:25:52 -0600, VanguardLH wrote:
Stan Brown <the_stan_brown@fastmail.fm> wrote:
VanguardLH wrote:
I find programs that use excessively long paths are due to bad coding by >>>>> lazy programmers that cannot cogitate a shorter path name.
On the other hand, programs that accommodate to _users'_ long paths
are a good thing, IMHO. Robocopy will accept long paths, for
instance, up to "almost 32,000" characters, unless you use the /256
option to limit paths. No registry change is required, so it must be
using a different mechanism.
Perhaps due to using the Unicode file I/O API (maximum total path length >>> of 32,767 characters) mentioned in the Microsoft article.
But then it seems odd they would say "almost 32,000"characters rather
than "over 32,000" or "about "32,000"or even "32,767".
MS does say 32,767 characters.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 297 |
Nodes: | 16 (2 / 14) |
Uptime: | 10:48:33 |
Calls: | 6,666 |
Files: | 12,213 |
Messages: | 5,336,371 |