<?xml version="1.0" encoding="windows-1252"?>
<node id="938771" title="Re^2: Perl/Tk System Function Error" created="2011-11-18 05:20:06" updated="2011-11-18 05:20:06">
<type id="11">
note</type>
<author id="747201">
afoken</author>
<data>
<field name="doctext">
&lt;blockquote&gt;removing the double-quotes makes it run  &amp;#91;...&amp;#93; Not sure why&lt;/blockquote&gt;
&lt;p&gt;Simple: The first argument of the start command, when put in double quotes, is taken as the requested window title. If you need to quote the command to be started, you also need to provide a dummy window title, i.e.:&lt;/p&gt;
&lt;c&gt;
system('start "" "C:\\program files\\my application\\kaboom.exe" /foo /bar');
&lt;/c&gt;
&lt;p&gt;Also note that &lt;c&gt;system()&lt;/c&gt; has a special case on Windows to run a program (with arguments) without waiting for it, and without having to mess with any shell or the braindead &lt;c&gt;start&lt;/c&gt; program. This is documented in [doc://perlport]:&lt;/p&gt;
&lt;c&gt;
system(1,'C:\\program files\\my application\\kaboom.exe','/foo','/bar');
#      ^-- the 1 is the special case for Windows
&lt;/c&gt;
&lt;p&gt;Alexander&lt;/p&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-747201"&gt;
--&lt;br&gt;
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
938716</field>
<field name="parent_node">
938719</field>
</data>
</node>
