Re: How to open an .exe file from command window



Super-specific instructions on using help #2:
1. Type "doc" in the command window
2. Click the Index tab
3. Type !
4. Look up the first answer. NOT SYSTEM! It's ! By that I mean, quite
literally, it is the exclamation point function.

You'll get to the same place that you do when you type exe into the
"Enter index term" field of the index tab. Oh what's the point? Here
it is:


Running External Programs

The exclamation point character, !, sometimes called bang, is a shell
escape and indicates that the rest of the input line is a command to
the operating system. Use it to invoke utilities or call other
executable programs without quitting MATLAB. On UNIX platforms, for
example,

!vi yearlystats.m

invokes the vi editor for a file named yearlystats.m. After the
external program completes or you quit the program, the operating
system returns control to MATLAB. Add & to the end of the line, such
as

!dir &

on Windows platforms to display the output in a separate window or to
run the application in background mode. For example

!excel.exe &

opens Microsoft Excel software and returns control to the Command
Window so you can continue running MATLAB language statements.

The maximum length of the argument list provided as input to the bang
(!) command is determined by any restrictions maintained within the
operating system. If you are running the Microsoft Windows Server®
2003 operating system, for example, the length of the argument list
input to the bang command cannot exceed 512 characters.

See the reference pages for the unix, dos, and system functions for
details about running external programs that return results and
status.

.



Relevant Pages

  • Re: REXX pgm calling another REXX pgm not on the PATH
    ... internal or external command, ... If I don't modify the PATH "on the fly", then the external programs ... fail but a call to the REXX subroutine (which was not previously on ... I opened a new window and the very same code ...
    (comp.lang.rexx)
  • Re: WD External hard drive trouble with read-only access
    ... You didn't bother to quote Badger's message - and the "forum" to which you posted your messages simply relayed them to the Microsoft public news server - with NO context - so I've pasted his instructions here, ... You must furnish Administrator credentials to open this window. ... any command or application you launch will run "elevated" - as Administrator. ... The Command Prompt window, elevated or not, is an emulation of MS-DOS, the operating system that many of us used for years before the first Windows arrived back in the 1950's. ...
    (microsoft.public.windows.vista.hardware_devices)
  • Re: WD External hard drive trouble with read-only access
    ... You must furnish Administrator credentials to open this window. ... any command or application you launch will run "elevated" - as Administrator. ... The Command Prompt window, elevated or not, is an emulation of MS-DOS, the operating system that many of us used for years before the first Windows arrived back in the 1950's. ...
    (microsoft.public.windows.vista.hardware_devices)
  • Re: Matlab crashes
    ... Michael Wild wrote in ... When I launch the program from command window, ... Operating System: Microsoft Windows XP ... The only command that I use is "write", ...
    (comp.soft-sys.matlab)
  • Re: Issues
    ... >> You can run CMD to open a command window. ... There is no DOS left in XP. ... Technically a "background process" but operating system is just fine. ...
    (alt.usage.english)