<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/261692</link>
    <title>MATLAB Central Newsreader - running an external executable</title>
    <description>Feed for thread: running an external executable</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Sat, 26 Sep 2009 02:49:04 -0400</pubDate>
      <title>running an external executable</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/261692#682774</link>
      <author>JH </author>
      <description>Does anyone know how to get an executable to run by using it's full path?  The command in question looks something like this:&lt;br&gt;
&lt;br&gt;
--------------------------------------------------------------------------&lt;br&gt;
system('C:\Documents and Settings\Fast\FAST.exe')&lt;br&gt;
--------------------------------------------------------------------------&lt;br&gt;
&lt;br&gt;
Apparently, the problem is the spaces in the path and it generates the following error:&lt;br&gt;
&lt;br&gt;
--------------------------------------------------------------------------&lt;br&gt;
'C:\Documents' is not recognized as an internal or external command, &lt;br&gt;
operable program or batch file. &lt;br&gt;
--------------------------------------------------------------------------&lt;br&gt;
&lt;br&gt;
Is there a way around this problem?  Putting everything in a location that has a path with no spaces is not really an option.&lt;br&gt;
&lt;br&gt;
Thanks!</description>
    </item>
    <item>
      <pubDate>Sat, 26 Sep 2009 03:13:04 -0400</pubDate>
      <title>Re: running an external executable</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/261692#682777</link>
      <author>Donn Shull</author>
      <description>&quot;JH &quot; &amp;lt;jhlaks@colorado.edu&amp;gt; wrote in message &amp;lt;h9jvf0$mt3$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Does anyone know how to get an executable to run by using it's full path?  The command in question looks something like this:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; --------------------------------------------------------------------------&lt;br&gt;
&amp;gt; system('C:\Documents and Settings\Fast\FAST.exe')&lt;br&gt;
&amp;gt; --------------------------------------------------------------------------&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Apparently, the problem is the spaces in the path and it generates the following error:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; --------------------------------------------------------------------------&lt;br&gt;
&amp;gt; 'C:\Documents' is not recognized as an internal or external command, &lt;br&gt;
&amp;gt; operable program or batch file. &lt;br&gt;
&amp;gt; --------------------------------------------------------------------------&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Is there a way around this problem?  Putting everything in a location that has a path with no spaces is not really an option.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thanks!&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Try&lt;br&gt;
&lt;br&gt;
system('&quot;C:\Documents and Settings\Fast\FAST.exe&quot;')&lt;br&gt;
&lt;br&gt;
OK I guess that is hard to see but enclose your string in double quotes then enclose that in single quotes.&lt;br&gt;
&lt;br&gt;
Hope This Helps&lt;br&gt;
&lt;br&gt;
Donn</description>
    </item>
    <item>
      <pubDate>Sat, 26 Sep 2009 23:16:02 -0400</pubDate>
      <title>Re: running an external executable</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/261692#682879</link>
      <author>JH </author>
      <description>&quot;Donn Shull&quot; &amp;lt;donn.shull.no_spam@aetoolbox.com&amp;gt; wrote in message &amp;lt;h9k0s0$m0m$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &quot;JH &quot; &amp;lt;jhlaks@colorado.edu&amp;gt; wrote in message &amp;lt;h9jvf0$mt3$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; Does anyone know how to get an executable to run by using it's full path?  The command in question looks something like this:&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; --------------------------------------------------------------------------&lt;br&gt;
&amp;gt; &amp;gt; system('C:\Documents and Settings\Fast\FAST.exe')&lt;br&gt;
&amp;gt; &amp;gt; --------------------------------------------------------------------------&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Apparently, the problem is the spaces in the path and it generates the following error:&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; --------------------------------------------------------------------------&lt;br&gt;
&amp;gt; &amp;gt; 'C:\Documents' is not recognized as an internal or external command, &lt;br&gt;
&amp;gt; &amp;gt; operable program or batch file. &lt;br&gt;
&amp;gt; &amp;gt; --------------------------------------------------------------------------&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Is there a way around this problem?  Putting everything in a location that has a path with no spaces is not really an option.&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Thanks!&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Try&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; system('&quot;C:\Documents and Settings\Fast\FAST.exe&quot;')&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; OK I guess that is hard to see but enclose your string in double quotes then enclose that in single quotes.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Hope This Helps&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Donn&lt;br&gt;
&lt;br&gt;
Thanks, Donn.  That does the trick.&lt;br&gt;
&lt;br&gt;
-JH</description>
    </item>
  </channel>
</rss>

