Command window file explorer

Embedded html links to open, run, or edit files from the command window. With bookmarks!

You are now following this Submission

Displays a directory listing in two colors. Beside each directory or file has a link to do one of the following:
- Open the file using the OS
- Open the directory with windows explorer
- Run a .m file as a script
Clicking on the file name will edit the file using matlab. Clicking on a directory changes the current directory.

Add bookmarks by clicking an empty link on the top bar.

For now this is windows only since I use "system(['dir ',cd,'/A-D /B'])".

The links are colored using
fprintf(1,str) -- blue
fprintf(2,str) -- red
The explanation is here:
http://undocumentedmatlab.com/blog/changing-matlab-command-window-colors-part2/

Cite As

Jon Danisch (2026). Command window file explorer (https://www.mathworks.com/matlabcentral/fileexchange/30350-command-window-file-explorer), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Environment and Settings in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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

Minor tweaks, more links, now uses 2 colors, sorted dir listing.

1.0.0.0