I'm having an issue trying to automate a python script that relies heavily on arcpy/ArcGIS. I have a functioning version of the script that runs perfectly in the ArcMap Python module, that continually fails when trying to translate it to something what will run from a batch file. I'm trying to set it up so that Windows Task Scheduler can grab it. What I've come to notice is that any function that has a table as an output (Table to Table, Copy Rows, Frequency Count, ect) fails when running from the batch. I've been copying and pasting these directly into the desktop version with 100% success so it doesn't seem like there are typos. Has anyone ever run into this before? Or is there a way to automate the script to run in ArcMap rather than python.exe? I'm working on Windows Server 2012 R2. Thank you!