Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

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 ajoutée par Muhammad Naeem , Site Engineer , Huawei Tech
Date de publication: 2013/12/24
Muhammad Naeem
par 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
par 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

Avez-vous besoin d'aide pour créer un CV ayant les mots-clés recherchés par les employeurs?