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,371
    Thanks
    78
    Thanked 12 Times in 11 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
    8,175
    Thanks
    47
    Thanked 981 Times in 911 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,371
    Thanks
    78
    Thanked 12 Times in 11 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
    8,175
    Thanks
    47
    Thanked 981 Times in 911 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,414
    Thanks
    33
    Thanked 195 Times in 175 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

    Time prevents everything happening all at once...

  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,371
    Thanks
    78
    Thanked 12 Times in 11 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
  •