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.

7 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?

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s