Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

Automating Models to run at scheduled time using python and Windows.

How can we automate Models created in ArcGIS to run automatically after a specific time period so that we do not need to do these tasks manually

user-image
Question added by Muhammad Naeem , Site Engineer , Huawei Tech
Date Posted: 2013/12/24
Muhammad Naeem
by Muhammad Naeem , Site Engineer , Huawei Tech

http://techbeetian.wordpress.com/2013/12/24/updating-gis-maps-automatically-using-python-scripts-and-windows/ Here is what I did to handle this... Kindly share your solutions on this topic

Muhammad Abdul Hadi Muhammad Abdul Majid
by Muhammad Abdul Hadi Muhammad Abdul Majid , Project Manager , AHCEC

Create a python script and place it at aknown location with permissions granted to everyone.

schtasks /Create /SC HOURLY /TN PythonTask /TR "PATH_TO_PYTHON_EXE PATH_TO_PYTHON_SCRIPT"

 

That will create an hourly task called 'PythonTask'. You can replace HOURLY with DAILY, WEEKLY etc. PATH_TO_PYTHON_EXE will be something like: C:\\python25\\python.exe. Check out more examples by writing this in the command line:

schtasks /?

 

Answer taken from http://stackoverflow.com/questions/2725754/schedule-python-script-windows-7

More Questions Like This

Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.