Products & Services Solutions Academia Support User Community Company

Learn more about MATLAB   

winopen - Open file in appropriate application (Windows)

Syntax

winopen(fileName)

Description

winopen(fileName) opens fileName in the associated Microsoft Windows application. The application is associated with the extension in fileName in the Windows operating system. filename is a string enclosed in single quotes. winopen uses a Windows shell command, and performs the same action as double-clicking the file in the Windows Explorer program. Use an absolute or relative path for fileName.

Examples

Open the file thesis.doc, located in the current folder, in the Microsoft Word program:

winopen('thesis.doc')

Open myresults.html in the system Web browser:

winopen('D:/myfiles/myresults.html')

On Microsoft Windows platforms, open the current folder in the Windows Explorer tool:

winopen(cd)

See Also

dos, open, web

Managing Files in MATLAB

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS