Code covered by the BSD License  

Highlights from
explorer.m: Quick access to the Windows Explorer

4.66667

4.7 | 3 ratings Rate this file 7 Downloads (last 30 days) File Size: 1.76 KB File ID: #11064

explorer.m: Quick access to the Windows Explorer

by Malcolm Wood

 

12 May 2006 (Updated 23 Dec 2009)

Opens the Windows Explorer for a specified directory, optionally showing the folder hierarchy

| Watch this File

File Information
Description

The Windows Explorer is opened in one of two modes: either in the "Explorer from here" mode with the Folder hierarchy visible and its root at the specified directory, or in its basic mode showing only the contents of the specified directory.

To open a directory listing for the current MATLABĀ® directory, type:
>> explorer

To open a listing for (e.g) directory C:\temp, type:
>> explorer C:\temp

>> To open a listing for the directory containing peaks.m (provided that peaks.m is on the MATLAB path) type:
>> explorer peaks

>> To also show the folder hierarchy inside that directory type:
>> explorer peaks 1
or
>> explorer('peaks',1)

etc.

MATLAB release MATLAB 7.2 (R2006a)
Other requirements Tested on Windows XP, but should work in any Win32 environment. Works in MATLAB 7 and later. In earlier versions of MATLAB the main functionality will work but the error handling will not.
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (3)
13 May 2006 Hyun Taik OH

very convenient

18 Nov 2008 Alfian Abdul Halin

Very2 convenient! Simple and straight forward to use! :)

16 Aug 2011 Adi Navve

I found this after I have thought of creating one myself and indeed it is convenient.
I have a suggestion - include the switch "/select" in the command line to get: 1) the file or directory is selected for convenience. 2) you can call explorer.exe with a full file name path since the file would not be opened.
In addition, I added the switch "/e" also for the default case to open the windows explorer with its default view.
Thanks for the submission.

Please login to add a comment or rating.
Updates
17 Dec 2009

Review

23 Dec 2009

Added copyright line.

23 Dec 2009

Added copyright and fixed M-lint warning.

Tag Activity for this File
Tag Applied By Date/Time
path Malcolm Wood 22 Oct 2008 08:25:06
directories Malcolm Wood 22 Oct 2008 08:25:06
files Malcolm Wood 22 Oct 2008 08:25:06
windows Malcolm Wood 22 Oct 2008 08:25:06
explorer Malcolm Wood 22 Oct 2008 08:25:06
directory Malcolm Wood 22 Oct 2008 08:25:06
listing Malcolm Wood 22 Oct 2008 08:25:06
folder Malcolm Wood 22 Oct 2008 08:25:06
hierarchy Malcolm Wood 22 Oct 2008 08:25:06

Contact us at files@mathworks.com