<?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 temp file with script. in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-temp-file-with-script/m-p/1580503#M151427</link>
    <description>How about just:&lt;BR /&gt;
&lt;BR /&gt;
close&lt;BR /&gt;
NO [don't save it!!]&lt;BR /&gt;
___&lt;BR /&gt;
&lt;BR /&gt;
&lt;MR_NICK&gt; wrote in message news:5110529@discussion.autodesk.com...&lt;BR /&gt;
Is it possible to delete a file directly after closing it using a script?&lt;BR /&gt;
&lt;BR /&gt;
I have a temporary drawing which I want to delete immediately after use but &lt;BR /&gt;
can't get it to happen.&lt;BR /&gt;
&lt;BR /&gt;
The script simply says:&lt;BR /&gt;
&lt;BR /&gt;
close&lt;BR /&gt;
yes&lt;BR /&gt;
del "c:\temp.dwg"&lt;BR /&gt;
&lt;BR /&gt;
When I run this however, it closes the drawing but doesn't delete it. Is it &lt;BR /&gt;
possible to get this to work?&lt;/MR_NICK&gt;</description>
    <pubDate>Tue, 14 Mar 2006 17:09:50 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2006-03-14T17:09:50Z</dc:date>
    <item>
      <title>Delete temp file with script.</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-temp-file-with-script/m-p/1580502#M151426</link>
      <description>Is it possible to delete a file directly after closing it using a script?&lt;BR /&gt;
&lt;BR /&gt;
I have a temporary drawing which I want to delete immediately after use but can't get it to happen.&lt;BR /&gt;
&lt;BR /&gt;
The script simply says:&lt;BR /&gt;
&lt;BR /&gt;
close&lt;BR /&gt;
yes&lt;BR /&gt;
del "c:\temp.dwg"&lt;BR /&gt;
&lt;BR /&gt;
When I run this however, it closes the drawing but doesn't delete it. Is it possible to get this to work?</description>
      <pubDate>Tue, 14 Mar 2006 17:06:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-temp-file-with-script/m-p/1580502#M151426</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-03-14T17:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Delete temp file with script.</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-temp-file-with-script/m-p/1580503#M151427</link>
      <description>How about just:&lt;BR /&gt;
&lt;BR /&gt;
close&lt;BR /&gt;
NO [don't save it!!]&lt;BR /&gt;
___&lt;BR /&gt;
&lt;BR /&gt;
&lt;MR_NICK&gt; wrote in message news:5110529@discussion.autodesk.com...&lt;BR /&gt;
Is it possible to delete a file directly after closing it using a script?&lt;BR /&gt;
&lt;BR /&gt;
I have a temporary drawing which I want to delete immediately after use but &lt;BR /&gt;
can't get it to happen.&lt;BR /&gt;
&lt;BR /&gt;
The script simply says:&lt;BR /&gt;
&lt;BR /&gt;
close&lt;BR /&gt;
yes&lt;BR /&gt;
del "c:\temp.dwg"&lt;BR /&gt;
&lt;BR /&gt;
When I run this however, it closes the drawing but doesn't delete it. Is it &lt;BR /&gt;
possible to get this to work?&lt;/MR_NICK&gt;</description>
      <pubDate>Tue, 14 Mar 2006 17:09:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-temp-file-with-script/m-p/1580503#M151427</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-03-14T17:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: Delete temp file with script.</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-temp-file-with-script/m-p/1580504#M151428</link>
      <description>When using scripts, the prompt you are responding to is 'Do you want to disregard changes' so it is 'Yes' otherwise No will carry out a save.&lt;BR /&gt;
&lt;BR /&gt;
This however goes no way to resolving the issue as the temp file is already saved to the HDD so whether or not I do a save prior to trying to delete it isn't really the issue.</description>
      <pubDate>Tue, 14 Mar 2006 18:15:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-temp-file-with-script/m-p/1580504#M151428</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-03-14T18:15:33Z</dc:date>
    </item>
  </channel>
</rss>

