with arcpy.da.SearchCursor() as cur: for row in cur: # do something
set log_file=logPath python myscript.py >> %log_file% 2>&1 if %errorlevel% neq 0 exit /b %errorlevel%
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.