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
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
To disable this feature (Reboot not required) – Run from Admin command prompt
fsutil behavior set disable8dot3 1
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.
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>
to verify the the created short path
Hope this blog will help you to resolve installation error due to short-name is not configuring.