| Subject | Exit Code = 4 when running batch file |
| Version | 6.x |
| Date | 07/22/2007 |
| Message | I am trying to use Automize to run a .bat
file. When I double-click the .bat file, it works fine. The .bat file
copies and deletes some files from both the local machine and some
mapped drives. Everything it does locally works fine but the operations
on the mapped drives don't work. It is acting as if it doesn't have
permissions. The machine that is running Automize is logged in as a
Domain Admin and the service also logs in as that same Domain Admin
account. The log says that the exit code = 4 but I'm not sure what that
means. Any ideas?
Thanks. |
| Reply1 |
Hi Tom, Thanks for using Automize. 1) Windows error codes are at: http://www.hiteksoftware.com/knowledge/articles/049.htm 2) Error code 4 = The system cannot open the file. I am not too sure, but I agree it could be a permissions issue. But error = 5 (access is denied) is more appropriate. Its probably not a mapping issue, else you would have got error 2 (cannot find file). 3) Did you try to use UNC convention for the mapped drive? just in case it is a mapping issue. http://www.hiteksoftware.com/knowledge/articles/038.htm http://www.hiteksoftware.com/knowledge/articles/040.htm 4) Are you using the NT service module? Is this related to the service? To check, stop the service from Service Control Manager. Then start engine from user interface and test task again. If it runs in NON-service context, then it is a permissions issue related to the Service account. -- Sincerely, Hitek Software |
| Reply2 | |
| Reply3 | |
| Reply4 | |
| Reply5 |