JSI Tip 9970. How can I set the shortname of a file or folder?

Jerold Schulman

December 13, 2005

1 Min Read
ITPro Today logo in a gray background | ITPro Today


Fsutil.exe can set the short file name of a file or folder.

NOTE: For Windows 2000, you can install Fsutil.exe from a Windows XP CD, or Windows Server 2003 CD.

The syntax for setting a short file name is:

fsutil file setshortname

Where:

  is the fully qualifed long file name of the file or folder. is the 8.3 short name of the  file or folder.

Examples:

To set the short name of the C:Documents and SettingsJerryMy Documents folder, which defaults to MYDOCU~1, to MYDOCS:

fsutil file setshortname "C:Documents and SettingsJerryMy Documents" MYDOCS

To set the shortname of "C:Documents and SettingsJerryMy DocumentsBlank Shipping Labels.doc", which defaults to BLANKS~1.DOC, to SHIPLBL.DOC:

fsutil file setshortname "C:Documents and SettingsJerryMy DocumentsBlank Shipping Labels.doc" SHIPLBL.DOC



Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like