gripper Posted April 23, 2011 Share Posted April 23, 2011 Hi Autoit Forum Members, I have a simple dircopy script and I want to add a msgbox that tells what the ruturn value is. According to the Autoit Help return value is 1 for success and "0" for failure. Since I am new I don't know how to capture that return value and then display it in a msgbox. I can run the script just fine but the error handling message has me confused. Thanks. Link to comment Share on other sites More sharing options...
JScript Posted April 23, 2011 Share Posted April 23, 2011 Welcome! Post your code... http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!) Somewhere Out ThereJames Ingram Download Dropbox - Simplify your life!Your virtual HD wherever you go, anywhere! Link to comment Share on other sites More sharing options...
Varian Posted April 23, 2011 Share Posted April 23, 2011 $Result = DirCopy(@MyDocumentsDir, "C:\Backups\MyDocs", 1) MsgBox(262208, 'Result', 'Result is ' & $Result) 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