Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


8 character representation of a long directory name within a command prompt

Posted on 2014-08-22
Medium Priority
Last Modified: 2014-08-22
I have a directory named

c:\program files (x86)\Java60\jre

Open in new window

For directories longer than 8 characters,
In some contexts, Windows sometimes displays
these directories with something like the
following nomenclature


Open in new window

However, when I do a 'dir', or 'cd' on the command prompt, I can not see the 8 character representation of the directory name

How can I view the 8 character representation for a directory within a command prompt

Is there a certain command or context in which I can perform this?
Question by:Anthony Lucia
LVL 36

Accepted Solution

Seth Simmons earned 1000 total points
ID: 40279057
use dir /x for the 8.3 name
LVL 43

Assisted Solution

by:Steve Knight
Steve Knight earned 1000 total points
ID: 40279090
You can also use "command" instead of "cmd" and see just 8.3 names

dir /ad /x will just show dirs too.

You can also get short name as part of a loop through filenames with the for command if needed, depending upon what you are trying to do?


Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension . This reminded me of questions that come up here at EE along the lines of, "How can I tell the type of file from its cont…
In this tutorial, we’re going to learn how to convert Youtube to mp3 for Free. We'll show you how easy it is to make an mp3 from your video clips so that you can enjoy them offline.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

577 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question