<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Delete .EXE on disk while executing in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Delete-EXE-on-disk-while-executing/m-p/805338#M39922</link>
    <description>I tried. It works for me. The case is closed.&lt;BR /&gt;&lt;BR /&gt;Thanks a lot, Steve.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Lev</description>
    <pubDate>Sun, 08 Jun 2003 22:49:51 GMT</pubDate>
    <dc:creator>ltabarov</dc:creator>
    <dc:date>2003-06-08T22:49:51Z</dc:date>
    <item>
      <title>Delete .EXE on disk while executing</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Delete-EXE-on-disk-while-executing/m-p/805334#M39918</link>
      <description>In FORTRAN, can an .EXE file delete its own image on disk at the time of execution?</description>
      <pubDate>Sun, 08 Jun 2003 03:51:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Delete-EXE-on-disk-while-executing/m-p/805334#M39918</guid>
      <dc:creator>ltabarov</dc:creator>
      <dc:date>2003-06-08T03:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: Delete .EXE on disk while executing</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Delete-EXE-on-disk-while-executing/m-p/805335#M39919</link>
      <description>Fortran, the language, has no concept of file deletion nor of "EXE".  What you're asking tends to be a property of the operating system, not a particular language or compiler.&lt;BR /&gt;&lt;BR /&gt;I tried the experiment with CVF on Windows, and it did not work.  Indeed, the documentation says that you cannot delete a file that is currently being accessed - which you can see if you try this in Windows Explorer.&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Sun, 08 Jun 2003 04:04:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Delete-EXE-on-disk-while-executing/m-p/805335#M39919</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2003-06-08T04:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: Delete .EXE on disk while executing</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Delete-EXE-on-disk-while-executing/m-p/805336#M39920</link>
      <description>Thanks, Steve. I also tried some tricks like attempting to kill the executable on disk from a thread, etc. It didn't work. My specific problem is cleaning up after installation / uninstallation. I can do everything except deleting installer/uninstaller at the end of the respective process. How do other people solve this problem in Windows? Is there always a small leftover? After your comments, I should ask my question in a different way: Are there Windows means of erasing an executable from a hard drive while executable is still working or can executable leave a request ("will") to be deleted immediately after execution? If such means exist can they be accessed from FORTRAN?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Lev&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 08 Jun 2003 09:36:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Delete-EXE-on-disk-while-executing/m-p/805336#M39920</guid>
      <dc:creator>ltabarov</dc:creator>
      <dc:date>2003-06-08T09:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: Delete .EXE on disk while executing</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Delete-EXE-on-disk-while-executing/m-p/805337#M39921</link>
      <description>Most installers use a "driver" program that unpacks files used for installation, does the install, then cleans up the unpacked files.  The driver program itself (usually setup.exe) is typically not automatically deleted.  If you use a standard installer creation tool, this is handled for you automatically.&lt;BR /&gt;&lt;BR /&gt;I'd be annoyed if an installer deleted itself after installation.&lt;BR /&gt;&lt;BR /&gt;Windows does have a mechanism for doing something close to what you want - you can specify arbitrary commands to be executed on the next reboot.  You've seen this at work when you uninstall a product and it tells you a reboot is needed.  See &lt;A href="http://support.microsoft.com/default.aspx?scid=kb;EN-US;137367"&gt;here&lt;/A&gt; for more information.&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Sun, 08 Jun 2003 21:26:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Delete-EXE-on-disk-while-executing/m-p/805337#M39921</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2003-06-08T21:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: Delete .EXE on disk while executing</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Delete-EXE-on-disk-while-executing/m-p/805338#M39922</link>
      <description>I tried. It works for me. The case is closed.&lt;BR /&gt;&lt;BR /&gt;Thanks a lot, Steve.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Lev</description>
      <pubDate>Sun, 08 Jun 2003 22:49:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Delete-EXE-on-disk-while-executing/m-p/805338#M39922</guid>
      <dc:creator>ltabarov</dc:creator>
      <dc:date>2003-06-08T22:49:51Z</dc:date>
    </item>
  </channel>
</rss>

