File Exchange

image thumbnail

Short path name on Windows (COM server)

version 1.0 (2.68 KB) by

Get the short path name of files and folders on Windows

1 Download


View License

Editor's Note: This file was selected as MATLAB Central Pick of the Week

Return the MS-DOS 8.3 naming convention for files or folders on Windows.

    >> fileName = 'C:\Program Files (x86)\Notepad++\notepad++.exe';

    >> shortName = fsoGetShortPath(fileName)

    shortName =


    >> shortName = fsoGetShortName(fileName)

    shortName =


This is the same as my other submission named "Short and long path name on Windows" (File ID: #48949) except that it works with a COM server instead of MEX files.

Comments and Ratings (0)

MATLAB Release
MATLAB 8.4 (R2014b)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video