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

Posted on 2014-08-22
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 34

    Accepted Solution

    use dir /x for the 8.3 name
    LVL 43

    Assisted Solution

    by:Steve Knight
    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?


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    TOMORROW TOMORROW.BAT is inspired by a question I get asked over and over again; that is, "How can I use batch file commands to obtain tomorrow's date?" The crux of this batch file revolves around the XCOPY command - a technique I discovered w…
    A Bare Metal Image backup allows for the restore of an entire system to a similar or dissimilar hardware. They are highly useful for migrations and disaster recovery. Bare Metal Image backups support Full and Incremental backups. Differential backup…
    The viewer will learn how to download, install and use CrashPlan from on Windows 7. Open your browser and go to Click get started, it’s free then Click the Download CrashPlan button: Click save in Internet Explorer, the…
    The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

    779 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

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now