ShellOpenFile

MEX file to open a specified file with the associated program in windows.
870 download
Aggiornato 23 ago 2004

Nessuna licenza

MEX file to open a specified file automatically using the associated program in windows. The user does not need to specify what executable to be used for a certain file since this is handled by the operating system.

Syntax
ShellOpenFile(FileName);

Compile with:
mex ShellOpenFile.c shell32.lib

Examples:
>> ShellOpenFile('test.doc');

Opens test.doc in MS Word

>> ShellOpenFile('test.pdf');
Opens test.pdf in Acrobat Reader

>> ShellOpenFile('test.htm');
Opens test.htm in Internet Explorer

>> ShellOpenFile('www.mathworks.com');
Opens the web page in your browser

>> ShellOpenFile('C:\MATLAB7\work');
Opens the directory in Windows Explorer

Cita come

Gunnar Ingeström (2025). ShellOpenFile (https://it.mathworks.com/matlabcentral/fileexchange/5744-shellopenfile), MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R14
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Categorie
Scopri di più su Programming in Help Center e MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Versione Pubblicato Note della release
1.0.0.0