<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>Dominik101's Feed - Programmer's Heaven</title>
    <link>http://www.programmersheaven.com/feed/User/380264/RSS.aspx</link>
    <description>Events at Programmer's Heaven related to the user Dominik101.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Thu, 23 May 2013 22:22:17 -0700</pubDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <item>
      <title>Re: exec()</title>
      <link />
      <description>&lt;p&gt;Posted a 'reply on the Pascal forum.&lt;/p&gt;Hi Bpajk,&lt;br /&gt;
&lt;br /&gt;
I have the same problem in FPC, when opening the notepad.&lt;br /&gt;
SwapVectors;&lt;br /&gt;
Exec(GetEnv('COMSPEC'),'/C '+ '&amp;gt;notepad.exe c:\active.txt');&lt;br /&gt;
SwapVectors;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Exec() opens the notepad but the program doesn't go forward until notepad is closed.&lt;br /&gt;
&lt;br /&gt;
I tried your code: &lt;br /&gt;
exec(GetEnv('COMSPEC'), '/Cc:\windows\notepad.exe');&lt;br /&gt;
&lt;br /&gt;
but the effect is just the same.&lt;br /&gt;
The programs opens notepad and stops.&lt;br /&gt;
&lt;br /&gt;
Can you help and tell how you solved the problem?&lt;br /&gt;</description>
      <pubDate>Thu, 28 Jan 2010 22:15:41 -0700</pubDate>
    </item>
  </channel>
</rss>