No BSD License  

Highlights from
xplor.m

Be the first to rate this file! 2 Downloads (last 30 days) File Size: 411 Bytes File ID: #15260

xplor.m

by John Bishop

 

11 Jun 2007 (Updated 11 Jun 2007)

A simple command to open a windows file exporer window in the current directory.

| Watch this File

File Information
Description

xplor.m looks for explorer.exe and opens a Windows file explorer window in the current working directory. It is quicker than using the mouse to do it.

Just type xplor [Enter] at the command line.

MATLAB release MATLAB 7.4 (R2007a)
Other requirements Windows only (2000/XP)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (5)
11 Jun 2007 Jos x@y.z

What has this really to do with matlab?
This script (sic!) is too simple imho.

11 Jun 2007 Duane Hanselman

Here is what is in the M-file:
if exist('c:\windows')
    dos('c:\windows\explorer /e, .');
elseif exist('c:\winnt40')
    dos('c:\winnt40\explorer /e, .');
elseif exist('c:\winnt')
    dos('c:\winnt\explorer /e, .');
else
disp('Unable to locate Explorer, please locate explorer.exe on your system and add its path to xplor.m')
end

12 Jun 2007 urs (us) schwarz

the switch is not necessary. simply use
!explorer /e, .
us

12 Jun 2007 David Mackenzie

If you really want to do this, try:

[s,r]=dos('echo %windir%');
dos([r(1:length(r)-1) '\explorer /e']);

12 Jun 2007 David Mackenzie

Urs is right - please ignore my suggestion which I submitted before seeing his better one.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
windows explorer command John Bishop 22 Oct 2008 09:15:08

Contact us at files@mathworks.com