Results 1 to 7 of 7

Thread: 8.3 format?

  1. #1
    Uranium Lounger CWBillow's Avatar
    Join Date
    Jul 2002
    Location
    Las Vegas, NV USA
    Posts
    6,600
    Thanks
    87
    Thanked 14 Times in 13 Posts

    8.3 format?

    Is there an easy way or tool to convert a file/path to 8.3 format, such as "C:\Users\CWBillow\Documents\~ System\~ Microsoft Office"?

    I understand the process, but do it often enough that having a tool would be great.

    Regards,
    Chuck Billow
    -------------------------------------------------
    "Good judgment comes from experience, and experience - well, that comes from poor judgment."

    ~ A(lan) A(lexander) Milne (1882-1956)- "House at Pooh Corner"

  2. #2
    WS Lounge VIP
    Join Date
    Dec 2009
    Location
    Earth
    Posts
    9,108
    Thanks
    64
    Thanked 1,125 Times in 1,048 Posts
    You can ask Windows via a Command Prompt.
    dir /x
    for /f %x in ('dir /b *.txt') do echo %~sx

    cheers, Paul

  3. #3
    Uranium Lounger CWBillow's Avatar
    Join Date
    Jul 2002
    Location
    Las Vegas, NV USA
    Posts
    6,600
    Thanks
    87
    Thanked 14 Times in 13 Posts
    I had some problems getting the format right, Paul, but I get the idea.

    Thanks,
    Chuck
    -------------------------------------------------
    "Good judgment comes from experience, and experience - well, that comes from poor judgment."

    ~ A(lan) A(lexander) Milne (1882-1956)- "House at Pooh Corner"

  4. #4
    WS Lounge VIP
    Join Date
    Dec 2009
    Location
    Earth
    Posts
    9,108
    Thanks
    64
    Thanked 1,125 Times in 1,048 Posts
    If you are still stuck tell us what path / files you want to list and we will advise.

    cheers, Paul

  5. #5
    Super Moderator BATcher's Avatar
    Join Date
    Feb 2008
    Location
    A cultural area in SW England
    Posts
    3,564
    Thanks
    36
    Thanked 212 Times in 189 Posts
    Chuck - you do realise that the 8.3 format of any specific file is not necessarily unique?

    If you have a file "Chucks first file.txt' the 8.3 format would probably be CHUCKS~1.TXT
    If you now create "Chucks next file.txt' the 8.3 format would probably be CHUCKS~2.TXT

    However, if the first file was not present when the second file was created, then the 8.3 format of the second file would probably be CHUCKS~1.TXT

    That's (at least) one reason why the 8.3 file format has been deprecated for very many years, in favour of the "put the file path in double quotes" method.
    BATcher

    Mission: identify what we do best and find more ways of doing less of it better

  6. #6
    5 Star Lounger
    Join Date
    Jan 2010
    Location
    Los Angeles, CA
    Posts
    828
    Thanks
    4
    Thanked 38 Times in 34 Posts
    The issue I sometimes run into is with really old apps that display a file open dialog using 8.3 notation. Then trying to figure out which file is CHUCKS~1.TXT and which is CHUCKS~2.TXT is annoying. But you can always open a Command Prompt, cd to the directory containing the files, and enter "dir /x" to get the 8.3 names for the files.

  7. #7
    Uranium Lounger CWBillow's Avatar
    Join Date
    Jul 2002
    Location
    Las Vegas, NV USA
    Posts
    6,600
    Thanks
    87
    Thanked 14 Times in 13 Posts
    Paul/Batcher/d00d;

    Thanks. I should be able to come up with now...

    Chuck
    -------------------------------------------------
    "Good judgment comes from experience, and experience - well, that comes from poor judgment."

    ~ A(lan) A(lexander) Milne (1882-1956)- "House at Pooh Corner"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •