How can I find / create short path for Windows folders (Directories)

How can I find / create short path for Windows folders (Directories).

Problem / Issue : Some of the applications wont install due to space in the folder path (Eg : Program Files) or it will not install of solder path has ” ” or Installation path is too long to install.
Solution : By default Windows has feature to Crete short path for folders to resolve these type of issues.

To check the this feature is enabled or disabled.
Run below command in administrative command prompt.

                                        fsutil 8dot3name query

8dot3name status

If you get response like “Registry state is 0” then its enabled.
If you get response like “Registry state is 1” then its disabled.

To enable this feature (Reboot not required) – Run from Admin command prompt
                                            fsutil behavior set disable8dot3 0

Enable to create Shortpath

To disable this feature (Reboot not required) – Run from Admin command prompt
                                    fsutil behavior set disable8dot3 1

Disable to create Shortpath
To view the existing Short path names on drive /forlders

Open command prompt and go to the directory which you want to know the short path.

type :                                                      dir /x

This command will show the existing short paths.

View existing shortpaths
To create new short path for folder,

(In this example I am creating short name for c:\Temp folder)

Syntax :              fsutil file setshortname <Path> <Shortname>

Ex :                           fsutil file setshortname c:\temp tp

<Short name for Temp folder is TP>

New short path

to verify the the created short path

dir /x

 

Hope this blog will help you to resolve installation error due to short-name is not configuring.

Advertisements
This entry was posted in Desktop, General, Manjunath Sullad, Server, Windows and tagged , , , , , , , , , , . Bookmark the permalink.

9 Responses to How can I find / create short path for Windows folders (Directories)

  1. Dominik says:

    i was searching windows path too long solution, and i found this article, nice article, but i got the solution using ‘Long Path Tool” your article helped me to learn more

  2. Vinodh says:

    Solved my long pending issue…Thanks

  3. webb123 says:

    I suggest to use “LONG PATH TOOL” it is very useful for renaming the long file, deleting the error file etc…

  4. Arundhati says:

    After giving the shortname to a folder how to access the folder through the shortname?

  5. pi says:

    Don’t use cmder.exe, use cmder.bat to run it. If you have problem adding a short path just make another bat/cmd file in proper location (with only short paths names) and call cmder.bat from it.

  6. Random victim of Microsoft's stupidity says:

    YES!! Windows (XP and 7 anyway) sometimes decides to call
    VeryLongName.txt as VESQ7E~1.txt or such instead of the entirely more useful VERYLO~1.TXT

    Now I can claw back, at least a tiny bit, against Microsoft, whose IDIOTIC designers force their choices on us, because in their belief, “they know what is better for the user than the user knows.” That honestly is the Microsoft policy. But at the cost of a bit of time I can now repair their stupidity. So thank you, thank you, thank you!

    Why your page is especially great is that the microsoft.com page on fsutil does not help one bit about SETTING short names; only eliminating them (using argument 8dot3name). And fsutil /? not only does not explain it, it doesn’t even SHOW the setshortname keyword (XP and Windows 7 command.com). I’m not kidding! Try it! Or see https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/fsutil – which hints that argument 8dot3name may do it – but that is 100% false!!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s