WindowsShortName

Returns the short name of a file or folder under Windows

You are now following this Submission

Under Windows, returns the short name (8.3) of a file or folder. Example :

WindowsShortName('C:\Documents and Settings\lulu\Bureau\Inno Setup Compiler.lnk')

returns 'C:\DOCUME~1\lulu\Bureau\INNOSE~1.LNK'

May be usefull to avoid issues with Windows long names (blanks, special characters, ...).

Cite As

Luc Masset (2026). WindowsShortName (https://au.mathworks.com/matlabcentral/fileexchange/21345-windowsshortname), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0