Command window file explorer

Embedded html links to open, run, or edit files from the command window. With bookmarks!
345 Downloads
Updated 12 Feb 2011

View License

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 (2024). Command window file explorer (https://www.mathworks.com/matlabcentral/fileexchange/30350-command-window-file-explorer), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Environment and Settings in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.1.0.0

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

1.0.0.0