How to? List path getting short file and directory names...

May 24, 2010
855
0
Northlake, Il
To start, console output:
Code:
[C:\Program Files (x86)\Microsoft Office\OFFICE11]*dir winword.exe /s /f /x
C:\Program Files (x86)\Microsoft Office\OFFICE11\WINWORD.EXE

[C:\Program Files (x86)\Microsoft Office\OFFICE11]
From the help file:

/X Display... /X also selects short file names in the /2,/4, /B, /W , and /Z displays, and
short file and path names in the /F display
.

What am I misunderstanding?
 
May 24, 2010
855
0
Northlake, Il
Thank you Charles, I am being told that 8dot3 name creation is disabled. So how do I turn it on? (This is a brand new machine; it came that way from the factory.)
 
May 20, 2008
11,402
99
Syracuse, NY, USA
I have read that this works.

Code:
fsutil.exe behavior set disable8dot3 0

I suspect that will set HKLM\SYSTEM\CurrentControlSet\Control\FileSystem\NtfsDisable8dot3NameCreation to 0.

I don't know if a restart is needed.
 
May 24, 2010
855
0
Northlake, Il
Windows 7.

And if I try the command:
Code:
fsutil behavior set disable8do3 C: 0
I get:
Code:
Usage : fsutil behavior set <option> <value>

<option>  <values>

AllowExtChar  1 | 0
BugcheckOnCorrupt  1 | 0
Disable8dot3  [0 through 3] | [<Volume Path> 1 | 0]
DisableCompression  1 | 0
DisableEncryption  1 | 0
DisableLastAccess  1 | 0
EncryptPagingFile  1 | 0
MftZone  1 through 4
MemoryUsage  1 through 2
QuotaNotify  1 through 4294967295 seconds
SymlinkEvaluation  [L2L:{0|1}] | [L2R:{0|1}] | [R2R:{0|1}] | [R2L:{0|1}]
DisableDeleteNotify  1 | 0

Some of these options require a reboot to take effect.

Please use "fsutil behavior set Disable8dot3 /?" for more information.

Sample SymlinkEvaluation command:
  "fsutil behavior set SymlinkEvaluation L2L:1 L2R:0"
  - Will enable local to local symbolic links and disable local to
  remote symbolic links. It will not change the state of remote to
  remote links or remote to local links.
  - This operation takes effect immediately (no reboot required)
and I get absolutely the same output if I do:
Code:
fsutil behavior set disable8do3 /?
Could be I just don't know what the parameters need to be but the help doesn't really tell me.
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,462
88
Albuquerque, NM
prospero.unm.edu
Windows 7.

Thanks.

And if I try the command:
Code:
fsutil behavior set disable8do3 C: 0
I get:
Code:
Usage : fsutil behavior set <option> <value>

Should be DISABLE8DOT3 -- you're missing the 'T'.

Mind you, that will allow Windows to create DOS-compatible filenames for new files and directories. I don't believe it will automagically generate short filenames for files and directories which already exist!
 
May 24, 2010
855
0
Northlake, Il
Thank you, Charles, that was the problem. (As I've said in the past my eyesight ain't too good.) And considering the fact that it did not do anything but display a "Success" message and didn't require a reboot I would tend to think that you are correct about it only affecting file names that will be created in the future. And I could be wrong about this but my recollection is that NTFS makes space for 8.3 names no matter what it seems kind of strange to me that you can turn this behavior off.
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,462
88
Albuquerque, NM
prospero.unm.edu
And I could be wrong about this but my recollection is that NTFS makes space for 8.3 names no matter what it seems kind of strange to me that you can turn this behavior off.

8.3 filenames are increasingly pointless. They were for ye olde MS-DOS programs, which 64-bit Windows doesn't support anyway.
 
May 24, 2010
855
0
Northlake, Il
I don't disagree that much but I found it better to shorten paths by using the 8.3 system (and I found out the short name of the path by using "/X" along with "/F" where appropriate).
 
May 24, 2010
855
0
Northlake, Il
Guys I am coming back to this because it is an issue for me over and over and it is why I wanted short file names to exist. And that is that the "Start" command just starts a new TCC session when what is being started contains blanks because the quoted string is taken as being the title on the window that is opened when you do the "Start" command because "Start" without a program/directory name just starts a new TCC instance (and the title does not even appear on that window except very briefly when you do this). (I will note here that this is only an issue for data files use to start an application (such as "Start Speadsheet.xls to start Excel) and directory names (to open a GUI window on that directory) because I don't normally create programs that have spaces in their names. One solution is to use the "/PGM" parameter on the "start" command, but I don't normally do that (particularly because file and directory names are not "programs") and old habits die hard. (Typically I can very quickly determine what the short file name for anything will be without even thinking about it too much.) However I will note that that doesn't work very well when the multiple files/directories with long names resolve to basically the same short names that are distinguished by "~" followed by a number at the end of the short name. In that case the wrong directory is opened up which I then close and redo the command using the "/PGM" parameter followed by the long file name (enclosed in double quotes of course).
 
Last edited:
Similar threads
Thread starter Title Forum Replies Date
FreezerBurnt ANSI Prompt messes up list output. Support 39
Phileosophos PDIR to list filenames without extensions? Support 2
T Is there a way to maintain the position in the environment list, while debugging? Support 10
Alpengreis List command: text truncated in find box (german) Support 9
L LIST's pop-up search loses focus in a Windows Terminal window Support 15
A List windows with titles matching given pattern? Support 2
C How to make list of drive contents when shutdown PC / Everything.exe Support 7
D _USBS list misses flash drives that @USB recognizes. Support 7
Phileosophos LIST edit not invoking my specified editor Support 4
cxxl WAD Mouse movement sluggish when using TCC list Support 3
Oz Solomon Problem with "list" Support 14
P Strange mouse behavior with list Support 2
T Invalid attach tabs list Support 10
M A list of issues .. Support 17
J Documentation New help system: "skip word list" Support 11
WavSlave Fixed LIST /U not working in TCC v19 Support 5
R V19 - At startup, TCC save directory in the directory history list Support 2
C cosmetic issue with LIST's (I) Support 9
Stefano Piccardi list of TCC commands for external editors Support 4
vefatica Get a list of all files with alternate streams? Support 11
Joe Caverly LIST /T (search for Text) Support 2
Joe Caverly ListColors for LIST Support 1
C How to? List empty folders Support 21
S How to? Use wild cards in include list without duplicate processing Support 49
vefatica Fixed No text in List View! Support 4
D Folder/List view changed in v15 Support 8
S list seems to loose focus v15 Support 2
A How to? Filter history list with unicode chars Support 0
N WAD Take Command and UNCs for Folder List Support 10
S TCMD No List-View with Libraries? Support 5
M Sync folder/list view with command window? Support 2
vefatica New directory not moved to end of list Support 2
vefatica LIST and TYPE show UTF8 BOM Support 4
M Problem with the "List" command... Support 19
vefatica DO f in /L <list of file names>? Support 6
C list jpsoft file Support 2
A How to? Filter a list by numeric number within filename Support 28
M Just an out-of-curiosity question the List command vs. the @Lines function... Support 13
Dmitry L. Kobyakov Fixed The Take Command File List Panel shows 0 for all file sizes at DVD Support 4
M WAD A case where the "List" command is clearly not working at all... Support 4
Joe Caverly LIST scrollbar Support 2
R TC 13 / you forgot to list a new feature Support 2
S BDEBUGER: watch list limit? Support 4
T "L" (LIST) not working in TCC's examples.btm Support 3
rconn Suggestion list for next major version Support 0
M FFIND and LIST does not work for UTF-8 fles Support 10
D LIST command wierdness with empty Unicode file Support 1
JohnQSmith List View refresh Support 6
S Using TCC list with KatMouse Support 9
S "List" decoding problem And TCMD crash. Support 0

Similar threads