<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" 
      xmlns:thr="http://purl.org/syndication/thread/1.0">
  <link rel="alternate" type="text/html" href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html" />
  <link rel="self" type="application/atom+xml" href="http://ask-leo.com/atom.xml" />
  <id>tag:ask-leo.com,2011://3/tag:ask-leo.com,2006://3.2688-</id>
  <updated>2011-12-24T11:18:13Z</updated>
  <title>Comments for How do I automatically close a program so that its data can be backed up?</title>
  
  <generator uri="http://www.sixapart.com/movabletype/">Movable Type 4.32-en</generator>

  <entry>
    <id>tag:ask-leo.com,2006://3.2688-comment:52754</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2006://3.2688" type="text/html" href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html#c52754" />
    <title>Comment from chocka on 2010-12-06</title>
    <author>
      <name>chocka</name>
      <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
      <![CDATA[<p>This is nearly the answer I'm looking for. So I tried to find at NirCMD the solution, but couldnot find it.</p>

<p>Q: How do I automatically start a task after I close a specific program (application)</p>

<p>Because I only start scheduled tasks on time or when I start my PC. But I want a scheduled task when I close a program (application)</p>

<p>I will give a simple example: I will automatically clean my PC and backup some specific files after I close Firefox.</p>

<div class="leocomment">I've not looked into the details much, but the Task Scheduler in Windows 7 has some fairly comprehensive "events" that you can trigger a task from. I'd write a batch file to do the clean up you want and see if the Task Scheduler couldn't be used to automate its run.
<div class="leocommentsig"><img src="http://img.askleomedia.com/leo2t.png" alt="Leo" /><br /><span class="leocommentdate">07-Dec-2010</span></div></div>
]]>
      <p>A comment on: <a href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html">How do I automatically close a program so that its data can be backed up?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2010</a>.</p>
    </content>
    <published>2010-12-06T17:38:36Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2006://3.2688-comment:51940</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2006://3.2688" type="text/html" href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html#c51940" />
    <title>Comment from Mohammad on 2010-11-03</title>
    <author>
      <name>Mohammad</name>
      <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
      <![CDATA[<p>Hi,<br />
We have a limited number of floating licences for one of our packages.  Most users logon for a few minutes the forget to logout, how can i force a logout after a set period of time.</p>

<p>cheers</p>

<p>M</p>]]>
      <p>A comment on: <a href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html">How do I automatically close a program so that its data can be backed up?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2010</a>.</p>
    </content>
    <published>2010-11-03T16:15:27Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2006://3.2688-comment:49888</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2006://3.2688" type="text/html" href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html#c49888" />
    <title>Comment from Marinos Andreou on 2010-08-30</title>
    <author>
      <name>Marinos Andreou</name>
      <uri>http://unspecified</uri>
    </author>
    <content type="html" xml:lang="en" xml:base="http://unspecified">
      <![CDATA[<p>There is a utility written specifically for closing outlook. It's called Close Outlook 1.0 but I haven't tried it and I don't know if it closes Outlook without killing it.</p>]]>
      <p>A comment on: <a href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html">How do I automatically close a program so that its data can be backed up?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2010</a>.</p>
    </content>
    <published>2010-08-30T09:07:25Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2006://3.2688-comment:49730</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2006://3.2688" type="text/html" href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html#c49730" />
    <title>Comment from MrCat on 2010-08-23</title>
    <author>
      <name>MrCat</name>
      <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
      <![CDATA[<p>This worked very well.  I was trying to close down Lotus Sametime Connect, but the closeprocess command didn't seem to be doing anything.  I just changed it to killprocess, and Bob is now my uncle.</p>]]>
      <p>A comment on: <a href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html">How do I automatically close a program so that its data can be backed up?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2010</a>.</p>
    </content>
    <published>2010-08-24T00:05:11Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2006://3.2688-comment:49446</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2006://3.2688" type="text/html" href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html#c49446" />
    <title>Comment from John on 2010-08-13</title>
    <author>
      <name>John</name>
      <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
      <![CDATA[<p>Leo thanks for this tip it was exactly what I was looking for. </p>]]>
      <p>A comment on: <a href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html">How do I automatically close a program so that its data can be backed up?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2010</a>.</p>
    </content>
    <published>2010-08-13T13:51:46Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2006://3.2688-comment:48965</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2006://3.2688" type="text/html" href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html#c48965" />
    <title>Comment from Nerisha on 2010-07-28</title>
    <author>
      <name>Nerisha</name>
      <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
      <![CDATA[<p>Thanks, I managed to close Outlook, but some of our users forget to save and close some emails, so the command will as to save to emails in drafts.  I want to automate the "Yes" answer so that it when it asks if I want to save changes, it automatically clicks "yes" and shuts down outlook.  I tried this: nricmd.exe closeprocess outlook.exe dlg "" "" click yes.  This does not work.  Please help</p>]]>
      <p>A comment on: <a href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html">How do I automatically close a program so that its data can be backed up?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2010</a>.</p>
    </content>
    <published>2010-07-28T08:31:24Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2006://3.2688-comment:48690</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2006://3.2688" type="text/html" href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html#c48690" />
    <title>Comment from Jeff  on 2010-07-19</title>
    <author>
      <name>Jeff </name>
      <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
      <![CDATA[<p>i dont have nircmd.exe on my computer.. help<br />
<div class="leocomment">That's because it's not part of windows. You have to download it by using the link in the article.<br />
<div class="leocommentsig"><img src="http://img.askleomedia.com/leo2t.png" alt="Leo" /><br /><span class="leocommentdate">20-Jul-2010</span></div></div><br />
</p>]]>
      <p>A comment on: <a href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html">How do I automatically close a program so that its data can be backed up?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2010</a>.</p>
    </content>
    <published>2010-07-20T06:51:53Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2006://3.2688-comment:47413</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2006://3.2688" type="text/html" href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html#c47413" />
    <title>Comment from MammaMia55 on 2010-06-06</title>
    <author>
      <name>MammaMia55</name>
      <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
      <![CDATA[<p>I have a related issue you may be able to help with.  I am running outlook 7 on two computers connected a home wireless network - the main study one has Windows 7 and the kids/kitchen one has xp.  I want to be able to log in to outlook from the kitchen one but can't because the outlook.pst is still in use by the one in the study.  (see below for message) Is there any way of making one computer automatically log out of outlook when the other computer is trying to open it?  <br />
Alternatively, is there a way of automatically logging out of outlook if it hasn't been used in, say, half an hour?<br />
I know I could get in the habit of closing outlook each time but I have three small children and never seem to be able to finish a sentence let alone finish what I need to do on outlook and log out.<br />
thanks<br />
Kimberley</p>

<p>the message that appears when I try to open outlook from the kitchen computer is Cannot start microsoft office outlook.  Cannot open the outlook window.  The set of folders cannot be opened.  The file ..... outlook.pst cannot be opened. <br />
All Windows/virus/spyware up to date.<br />
<div class="leocomment">I'm of the opinion that accessing a PST across the network like that is asking for trouble, where trouble means PST corruption and lost contents. It used to be that Outlook wouldn't even let you access a PST across a network.<br /><br />
To answer your question: no, I'm not aware of a solution to automatically or remotely close Outlook or release the PST. With one exception:<br /><br />
Remote desktop. But if you have remote desktop, then I strongly recommend that instead of closing Outlook on the remote machine, you <strong>use</strong> Outlook on the remote machine. That's essentially what I've always done.<br />
<div class="leocommentsig"><img src="http://img.askleomedia.com/leo2t.png" alt="Leo" /><br /><span class="leocommentdate">09-Jun-2010</span></div></div> <br />
</p>]]>
      <p>A comment on: <a href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html">How do I automatically close a program so that its data can be backed up?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2010</a>.</p>
    </content>
    <published>2010-06-07T04:41:59Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2006://3.2688-comment:47186</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2006://3.2688" type="text/html" href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html#c47186" />
    <title>Comment from Ville on 2010-05-30</title>
    <author>
      <name>Ville</name>
      <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
      <![CDATA[<p>I've seen mixed results with using nircmd to close applications gracefully. Outlook, for example, mostly doesn't close on Win 7 although *sometimes* it does. In other words it's not reliable enough. </p>

<p>Looking for other alternatives I quickly wrote a script for the excellent (commercial) Macro Scheduler. However, on a budget a compiled AutoHotKey (www.autohotkey.com) script works just as well. </p>

<p>Here's a simple AutoHotKey script that closes Outlook (use AutoHotKey's Ehk2Exe to convert the script into an executable command which can then be automated to run before the backup process):</p>

<p>; -- begin script --<br />
SetTitleMatchMode RegEx</p>

<p>IfWinExist .*Microsoft\sOutlook <br />
{<br />
   WinClose .*Microsoft\sOutlook<br />
}<br />
; -- end script --<br />
</p>]]>
      <p>A comment on: <a href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html">How do I automatically close a program so that its data can be backed up?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2010</a>.</p>
    </content>
    <published>2010-05-31T02:02:32Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2006://3.2688-comment:24470</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2006://3.2688" type="text/html" href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html#c24470" />
    <title>Comment from James Senn on 2009-06-11</title>
    <author>
      <name>James Senn</name>
      <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
      <![CDATA[<p>I forget to logo off my password protected e-mail program sometimes and then any one can see it, is there a way to have my e-mail program auto close my password when I close my internet explorer page?</p>]]>
      <p>A comment on: <a href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html">How do I automatically close a program so that its data can be backed up?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2009</a>.</p>
    </content>
    <published>2009-06-11T16:28:07Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2006://3.2688-comment:24469</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2006://3.2688" type="text/html" href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html#c24469" />
    <title>Comment from Scott on 2009-03-31</title>
    <author>
      <name>Scott</name>
      <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
      <![CDATA[<p>Leos technique worked flawlessly! T Perfect solution for me.<br />
Thanks Leo!</p>]]>
      <p>A comment on: <a href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html">How do I automatically close a program so that its data can be backed up?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2009</a>.</p>
    </content>
    <published>2009-03-31T20:36:03Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2006://3.2688-comment:24468</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2006://3.2688" type="text/html" href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html#c24468" />
    <title>Comment from Mike on 2008-10-24</title>
    <author>
      <name>Mike</name>
      <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
      <![CDATA[<p>After I add closeprocess outlook.exe to the run line, save the task and click run, the status column says could not start.  What am I doing wrong? I am admin.</p>]]>
      <p>A comment on: <a href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html">How do I automatically close a program so that its data can be backed up?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2008</a>.</p>
    </content>
    <published>2008-10-24T15:32:45Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2006://3.2688-comment:24467</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2006://3.2688" type="text/html" href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html#c24467" />
    <title>Comment from Patrick Versyck on 2008-06-21</title>
    <author>
      <name>Patrick Versyck</name>
      <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
      <![CDATA[<p>Hello,</p>

<p>nircmd works perfectly when executed interactively (in batchfile or from commandline) but not when executed in Task Scheduler on my Vista PC</p>

<p>Did I overlook a setting or is Vista a problem ?</p>

<p> Grtz</p>]]>
      <p>A comment on: <a href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html">How do I automatically close a program so that its data can be backed up?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2008</a>.</p>
    </content>
    <published>2008-06-21T13:10:22Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2006://3.2688-comment:24466</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2006://3.2688" type="text/html" href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html#c24466" />
    <title>Comment from Fred Polhout on 2007-06-19</title>
    <author>
      <name>Fred Polhout</name>
      <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
      <![CDATA[<p>Whe I saw this article, I thought: great, just what I need. But is doesn't work. I get the following log:<br />
"nircmd.job" (nircmd.exe closeprocess outlook.exe) 20-6-2007 1:12:54 ** ERROR **<br />
	Unable to start task.<br />
	The specific error is:<br />
	0x80070005: Access is denied.<br />
	Try using the Task page Browse button to locate the application.</p>

<p>Any idea's? I am Administrator.</p>

<p>Thx</p>

<p>cu, Fr@</p>]]>
      <p>A comment on: <a href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html">How do I automatically close a program so that its data can be backed up?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2007</a>.</p>
    </content>
    <published>2007-06-19T23:16:01Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2006://3.2688-comment:24465</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2006://3.2688" type="text/html" href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html#c24465" />
    <title>Comment from Lex on 2007-04-14</title>
    <author>
      <name>Lex</name>
      <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
      <![CDATA[<p>I noticed no quotations were put into the command in this example.  It did not work for me without quotations.  Once I put them in, it ran perfectly.  I'm using WXPPro.  Other than that, thanks.</p>]]>
      <p>A comment on: <a href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html">How do I automatically close a program so that its data can be backed up?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2007</a>.</p>
    </content>
    <published>2007-04-14T19:31:10Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2006://3.2688-comment:24464</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2006://3.2688" type="text/html" href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html#c24464" />
    <title>Comment from linxs on 2006-12-31</title>
    <author>
      <name>linxs</name>
      <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
      <![CDATA[<p>thanks for the info leo, i tried this, cuz i need to close a program during night, but it just kinda block the program, it doesnt close it, i have to close the process manually cuz the program dont respond anymore, do you know any solution to this?</p>]]>
      <p>A comment on: <a href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html">How do I automatically close a program so that its data can be backed up?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2007</a>.</p>
    </content>
    <published>2007-01-01T02:51:59Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2006://3.2688-comment:24463</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2006://3.2688" type="text/html" href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html#c24463" />
    <title>Comment from Snorri on 2006-08-31</title>
    <author>
      <name>Snorri</name>
      <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
      <![CDATA[<p>Thx so much for this! It helped me out so much! I didn't have trouble with Outlook but with another program, so thx :D</p>]]>
      <p>A comment on: <a href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html">How do I automatically close a program so that its data can be backed up?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2006</a>.</p>
    </content>
    <published>2006-08-31T10:12:24Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2006://3.2688-comment:24462</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2006://3.2688" type="text/html" href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html#c24462" />
    <title>Comment from Douglas J. Nakakihara on 2006-07-12</title>
    <author>
      <name>Douglas J. Nakakihara</name>
      <uri>http://unspecified</uri>
    </author>
    <content type="html" xml:lang="en" xml:base="http://unspecified">
      <![CDATA[<p>I wrote a little utility to specifically close Microsoft Outlook so you can back up the PST file. It's freeware and you can download at <a href="http://offbe.at/files/default.aspx" rel="nofollow"><a href="http://offbe.at/files/default.aspx" rel="nofollow">http://offbe.at/files/default.aspx</a></a> Note that my utility closes Outlook "nicely" and does not kill the process, so the PST file won't get corrupted.</p>]]>
      <p>A comment on: <a href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html">How do I automatically close a program so that its data can be backed up?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2006</a>.</p>
    </content>
    <published>2006-07-13T04:23:30Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2006://3.2688-comment:24461</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2006://3.2688" type="text/html" href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html#c24461" />
    <title>Comment from Eli Coten on 2006-06-17</title>
    <author>
      <name>Eli Coten</name>
      <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
      <![CDATA[<p>I think the original question is confused between Outlook Express and Office Outlook.</p>

<p>Outlook Express uses DBX files to store the mail folders - not PST. It comes for free with Internet Explorer 4, and any version of Windows since 98.</p>

<p>Microsoft Office Outlook comes with Microsoft Office which you have to buy. It uses PST files.</p>]]>
      <p>A comment on: <a href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html">How do I automatically close a program so that its data can be backed up?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2006</a>.</p>
    </content>
    <published>2006-06-18T00:57:25Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2006://3.2688-comment:24460</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2006://3.2688" type="text/html" href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html#c24460" />
    <title>Comment from Alex Lehaen on 2006-06-17</title>
    <author>
      <name>Alex Lehaen</name>
      <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
      <![CDATA[<p>Hello everybody,</p>

<p>I think i have the solution for the outlook problem. I do this for more then a year now on my servers. I used retrospect together with maxtor one touch to, but it's no stable solution for back-up specialy not for servers because my maxtors (two) made some problems regular.<br />
Now the solution, use SyncBackSe from 2brightspaks, install it on the pc where outlook is instaled and your PST file will be backed up together with your other data .  Succes!!http://2brightsparks.com/<br />
Alex.</p>]]>
      <p>A comment on: <a href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html">How do I automatically close a program so that its data can be backed up?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2006</a>.</p>
    </content>
    <published>2006-06-17T10:36:42Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2006://3.2688-comment:24459</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2006://3.2688" type="text/html" href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html#c24459" />
    <title>Comment from Neville on 2006-06-13</title>
    <author>
      <name>Neville</name>
      <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
      <![CDATA[<p>Thanks Leo for finding a solution.  I lost my hard disk a few months back and was lucky enough to have remembered to manually close Outlook before the scheduled overnight backup.  I had a complete backup that was only a few hours old when the hard disk died.  More luck than good management.  By using this, it removes one of the elements of luck so thank you again.</p>]]>
      <p>A comment on: <a href="http://ask-leo.com/how_do_i_automatically_close_a_program_so_that_its_data_can_be_backed_up.html">How do I automatically close a program so that its data can be backed up?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2006</a>.</p>
    </content>
    <published>2006-06-13T20:49:00Z</published>
  </entry>

</feed>

