Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: running an external executable
Replies: 2   Last Post: Sep 26, 2009 7:16 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
J

Posts: 9
Registered: 8/29/09
Re: running an external executable
Posted: Sep 26, 2009 7:16 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Donn Shull" <donn.shull.no_spam@aetoolbox.com> wrote in message <h9k0s0$m0m$1@fred.mathworks.com>...
> "JH " <jhlaks@colorado.edu> wrote in message <h9jvf0$mt3$1@fred.mathworks.com>...
> > Does anyone know how to get an executable to run by using it's full path? The command in question looks something like this:
> >
> > --------------------------------------------------------------------------
> > system('C:\Documents and Settings\Fast\FAST.exe')
> > --------------------------------------------------------------------------
> >
> > Apparently, the problem is the spaces in the path and it generates the following error:
> >
> > --------------------------------------------------------------------------
> > 'C:\Documents' is not recognized as an internal or external command,
> > operable program or batch file.
> > --------------------------------------------------------------------------
> >
> > Is there a way around this problem? Putting everything in a location that has a path with no spaces is not really an option.
> >
> > Thanks!

>
>
> Try
>
> system('"C:\Documents and Settings\Fast\FAST.exe"')
>
> OK I guess that is hard to see but enclose your string in double quotes then enclose that in single quotes.
>
> Hope This Helps
>
> Donn


Thanks, Donn. That does the trick.

-JH



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.