<?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: batch file will not run as a scheduled task in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/batch-file-will-not-run-as-a-scheduled-task/m-p/615037#M47987</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I recreated the scheduled task, and it works fine.&amp;nbsp; I swear I tried this about 10 times earlier this week.&amp;nbsp; I think it might have had something to do with the logon for the task.&amp;nbsp; Our network folks just installed something new where they had to give user permission to run a batch file.&amp;nbsp;&amp;nbsp; It seems too coincidental.&amp;nbsp; But I bet they reset something that caused the "run as a batch file" not to work until I recreated the task.&amp;nbsp; I had a similar problem this morning with the ArcGIS SOM service.&amp;nbsp; The service wouldn't start.&amp;nbsp; But when I reset the user logon (to the same user), it worked.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Go figure.&amp;nbsp; Sorry for the unnecessary post.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Jun 2011 17:52:29 GMT</pubDate>
    <dc:creator>StephanieSnider</dc:creator>
    <dc:date>2011-06-30T17:52:29Z</dc:date>
    <item>
      <title>batch file will not run as a scheduled task</title>
      <link>https://community.esri.com/t5/python-questions/batch-file-will-not-run-as-a-scheduled-task/m-p/615036#M47986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a batch file that executes an arcpy python script.&amp;nbsp; When I run the batch file in the DOS command line, the script works perfectly.&amp;nbsp; However, when I run the same batch file as a scheduled task, the python script runs but all of the lists are empty (which means none of the geoprocessing task run).&amp;nbsp; For example, when I do a arcpy.ListRaster(), the output is empty using the scheduled task.&amp;nbsp; When I run it in DOS, arcpy.ListRasters() contains items.&amp;nbsp;&amp;nbsp; Why would the arcpy functions not run correctly in the scheduled task, but run fine in a DOS prompt?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;OS: Windows Server 2003&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGIS Desktop 10 SP2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;python 2.6&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2011 16:42:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/batch-file-will-not-run-as-a-scheduled-task/m-p/615036#M47986</guid>
      <dc:creator>StephanieSnider</dc:creator>
      <dc:date>2011-06-30T16:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: batch file will not run as a scheduled task</title>
      <link>https://community.esri.com/t5/python-questions/batch-file-will-not-run-as-a-scheduled-task/m-p/615037#M47987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I recreated the scheduled task, and it works fine.&amp;nbsp; I swear I tried this about 10 times earlier this week.&amp;nbsp; I think it might have had something to do with the logon for the task.&amp;nbsp; Our network folks just installed something new where they had to give user permission to run a batch file.&amp;nbsp;&amp;nbsp; It seems too coincidental.&amp;nbsp; But I bet they reset something that caused the "run as a batch file" not to work until I recreated the task.&amp;nbsp; I had a similar problem this morning with the ArcGIS SOM service.&amp;nbsp; The service wouldn't start.&amp;nbsp; But when I reset the user logon (to the same user), it worked.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Go figure.&amp;nbsp; Sorry for the unnecessary post.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2011 17:52:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/batch-file-will-not-run-as-a-scheduled-task/m-p/615037#M47987</guid>
      <dc:creator>StephanieSnider</dc:creator>
      <dc:date>2011-06-30T17:52:29Z</dc:date>
    </item>
  </channel>
</rss>

