Adnoh Posted June 14, 2007 Share Posted June 14, 2007 hy guys, just wanne to ask how I catch a exeption in autoit. a kind of "try .... exception .... finally" block. I have a application wich copys the local outlook pst stuff over to a imap server - it goes throug every folder and copies it. it works most of the time - but sometime there is an exception (some com-related stuff - i think it has to do with the folder name it tries to copy) and the hole script aborts. so i have to search where it has abortet and copy over the rest by hand - this sucks. is there a way to cat such errors and make shure my script doesn't abort !? Thanks Link to comment Share on other sites More sharing options...
Developers Jos Posted June 14, 2007 Developers Share Posted June 14, 2007 hy guys,just wanne to ask how I catch a exeption in autoit. a kind of "try .... exception .... finally" block.I have a application wich copys the local outlook pst stuff over to a imap server - it goes throug every folder and copies it.it works most of the time - but sometime there is an exception (some com-related stuff - i think it has to do with the folder name it tries to copy)and the hole script aborts. so i have to search where it has abortet and copy over the rest by hand - this sucks.is there a way to cat such errors and make shure my script doesn't abort !?ThanksDid you define a Com Error Handler ?Look here for it or in the helpfile : http://www.autoitscript.com/autoit3/docs/intro/ComRef.htm SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Adnoh Posted June 14, 2007 Author Share Posted June 14, 2007 Did you define a Com Error Handler ?Look here for it or in the helpfile : http://www.autoitscript.com/autoit3/docs/intro/ComRef.htmhmm.... NO :-)i'm checking this out.Thanks for the very,very fast response !!! *GREAT* Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now