VOGONS


First post, by BEEN_Nath_58

User metadata
Rank l33t
Rank
l33t

I have messing around with some short path names today and it just came to my notice that I can't define a short path name on non-C:\ drives. It just displays the unavailability of the path. Can anyone confirm this case?
file.php?mode=view&id=146340

previously known as Discrete_BOB_058

Reply 2 of 7, by Disruptor

User metadata
Rank Oldbie
Rank
Oldbie

Easier.

Type cd /d d:\directory

Reply 3 of 7, by konc

User metadata
Rank l33t
Rank
l33t

No need to do so, it works from another drive. I'd check the generated short names (dir /x) just to be sure I'm trying the correct ones
Edit: just saw it's about windows 11, sorry, the above is valid for windows 10

Reply 4 of 7, by BEEN_Nath_58

User metadata
Rank l33t
Rank
l33t
DosFreak wrote on 2022-09-27, 11:30:

Try switching to the drive first.

Didn't help. But I could list the short path names and there is inconsistency. Some folders have short path names, others don't. It is important to note that on Windows 7, a non-C:\ drive Program Files and (x86) folder have a short path name but since Windows 8.1, the don't.

konc wrote on 2022-09-27, 11:38:

No need to do so, it works from another drive. I'd check the generated short names (dir /x) just to be sure I'm trying the correct ones
Edit: just saw it's about windows 11, sorry, the above is valid for windows 10

I can change directories in other folders in other drives too...

previously known as Discrete_BOB_058

Reply 5 of 7, by Falcosoft

User metadata
Rank l33t
Rank
l33t
BEEN_Nath_58 wrote on 2022-09-27, 15:25:
Didn't help. But I could list the short path names and there is inconsistency. Some folders have short path names, others don't. […]
Show full quote
DosFreak wrote on 2022-09-27, 11:30:

Try switching to the drive first.

Didn't help. But I could list the short path names and there is inconsistency. Some folders have short path names, others don't. It is important to note that on Windows 7, a non-C:\ drive Program Files and (x86) folder have a short path name but since Windows 8.1, the don't.

konc wrote on 2022-09-27, 11:38:

No need to do so, it works from another drive. I'd check the generated short names (dir /x) just to be sure I'm trying the correct ones
Edit: just saw it's about windows 11, sorry, the above is valid for windows 10

I can change directories in other folders in other drives too...

By default only C: drive has enabled 8.3 short path name generation even on Win10.
You can check if 8.3 short path names are enabled on a given drive by executing:
fsutil 8dot3name query C:
fsutil 8dot3name query D:

etc.

If the above commands confirm that 8.3 short path name generation is disabled on a drive then you can enable it by executing:
fsutil 8dot3name set C: 0
fsutil 8dot3name set D: 0

etc.

Or you can enable 8.3 short path name generation on all drives by executing:
fsutil 8dot3name set 0

Be aware that existing files will not have 8.3 file names after the command is executed, only new ones will get it.

Website, Facebook, Youtube
Falcosoft Soundfont Midi Player + Munt VSTi + BassMidi VSTi
VST Midi Driver Midi Mapper

Reply 6 of 7, by BEEN_Nath_58

User metadata
Rank l33t
Rank
l33t
Falcosoft wrote on 2022-09-27, 16:07:
By default only C: drive has enabled 8.3 short path name generation even on Win10. You can check if 8.3 short path names are ena […]
Show full quote
BEEN_Nath_58 wrote on 2022-09-27, 15:25:
Didn't help. But I could list the short path names and there is inconsistency. Some folders have short path names, others don't. […]
Show full quote
DosFreak wrote on 2022-09-27, 11:30:

Try switching to the drive first.

Didn't help. But I could list the short path names and there is inconsistency. Some folders have short path names, others don't. It is important to note that on Windows 7, a non-C:\ drive Program Files and (x86) folder have a short path name but since Windows 8.1, the don't.

konc wrote on 2022-09-27, 11:38:

No need to do so, it works from another drive. I'd check the generated short names (dir /x) just to be sure I'm trying the correct ones
Edit: just saw it's about windows 11, sorry, the above is valid for windows 10

I can change directories in other folders in other drives too...

By default only C: drive has enabled 8.3 short path name generation even on Win10.
You can check if 8.3 short path names are enabled on a given drive by executing:
fsutil 8dot3name query C:
fsutil 8dot3name query D:

etc.

If the above commands confirm that 8.3 short path name generation is disabled on a drive then you can enable it by executing:
fsutil 8dot3name set C: 0
fsutil 8dot3name set D: 0

etc.

Or you can enable 8.3 short path name generation on all drives by executing:
fsutil 8dot3name set 0

Be aware that existing files will not have 8.3 file names after the command is executed, only new ones will get it.

Yes I used this earlier. I check the D:\ drive and noticed that most folders (82 out of 102) have short path names. What happened to the other 20? Note that these folders have been there for ages.

previously known as Discrete_BOB_058

Reply 7 of 7, by Errius

User metadata
Rank l33t
Rank
l33t

Short filenames are only created when files are created, copied or moved. Enabling short filenames won't cause Windows to scan the drive adding short filenames to all files that don't have them.

Move those 20 files to another directory, then move them back, and the short filenames should appear.

Beware though that enabling short filenames imposes a drive speed performance penalty.

Is this too much voodoo?