Short path name on Windows (COM server)

Get the short path name of files and folders on Windows
546 Downloads
Aktualisiert 5 Jan 2015

Lizenz anzeigen

Anmerkung des Herausgebers: 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.
Example

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

>> shortName = fsoGetShortPath(fileName)

shortName =

C:\PROGRA~2\NOTEPA~1\NOTEPA~1.EXE

>> shortName = fsoGetShortName(fileName)

shortName =

NOTEPA~1.EXE

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.

Zitieren als

Jerome Briot (2024). Short path name on Windows (COM server) (https://www.mathworks.com/matlabcentral/fileexchange/48950-short-path-name-on-windows-com-server), MATLAB Central File Exchange. Abgerufen .

Kompatibilität der MATLAB-Version
Erstellt mit R2014b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu Search Path finden Sie in Help Center und MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Veröffentlicht Versionshinweise
1.0.0.0