I know the 8.3 short name was the max length of a file name in DOS.
It carries through to Windows 8, although obviously no longer a requirement.
I never gave thought to its use in batch (or other languages calling a shell) until early this morning, i.e., whether the shortening of a name to include a tilde ~ in a folder or filename flowed through or not (if not used on purpose) -
The CMD screen shows the 8.3 file name for my laptop here as I was accessing the TEMP dirs -
Nothing surprising there, but the other portion of the screenshot is from SysInternals Process Monitor.
I've never seen an 8.3 name in ProcMon before. Could the app it passed through have an issue with the ~ ? I know that batch may in FOR loop or other unexpected place it shows up.
Why would C++ or other modern language be using the 8.3?
What does %~d0 mean in a Windows batch file? - Stack Overflow
This is not a rhetorical question! I honestly do not know.
Code:
abcdefgh.xyz
It carries through to Windows 8, although obviously no longer a requirement.
I never gave thought to its use in batch (or other languages calling a shell) until early this morning, i.e., whether the shortening of a name to include a tilde ~ in a folder or filename flowed through or not (if not used on purpose) -
The CMD screen shows the 8.3 file name for my laptop here as I was accessing the TEMP dirs -
Code:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\PalmDesert>[COLOR=#0000FF]echo %temp%[/COLOR]
[B]C:\Users\[COLOR=#FF0000]PALMDE~1[/COLOR]\AppData\Local\Temp[/B]
C:\Users\PalmDesert>cd appdata\local\temp
[B]C:\Users\[COLOR=#FF0000]PalmDesert[/COLOR]\AppData\Local\Temp[/B]>
Nothing surprising there, but the other portion of the screenshot is from SysInternals Process Monitor.
I've never seen an 8.3 name in ProcMon before. Could the app it passed through have an issue with the ~ ? I know that batch may in FOR loop or other unexpected place it shows up.
Why would C++ or other modern language be using the 8.3?
What does %~d0 mean in a Windows batch file? - Stack Overflow
This is not a rhetorical question! I honestly do not know.
Last edited: