sylvershark Posted September 26, 2006 Posted September 26, 2006 (edited) Hi there, I started with autoit today and it looks wicked and i'm trying to make some "simple" scripts. I made something that deletes 2 folders wich works : $Folder1 = "badfolder" $Folder2 = "verybadfolder" DirRemove($Folder1) DirRemove($Folder2) But I would like the script to say when it didn't find these 2 folders: "You are clean!" And if it found the folders : "Oh ow, You have bad folders ! Press ok to delete them" How can I do that? I suppose it must be by using the "if" command but then what? Thx in advance Edited September 26, 2006 by sylvershark
blademonkey Posted September 26, 2006 Posted September 26, 2006 Hi there, I started with autoit today and it looks wicked and i'm trying to make some "simple" scripts. I made something that deletes 2 folders wich works : $Folder1 = "badfolder" $Folder2 = "verybadfolder" DirRemove($Folder1) DirRemove($Folder2) But I would like the script to say when it didn't find these 2 folders: "You are clean!" And if it found the folders : "Oh ow, You have bad folders ! Press ok to delete them" How can I do that? Thx in advance look at fileexists() ---"Educate the Mind, Make Savage the Body" -Mao Tse Tung
sylvershark Posted September 26, 2006 Author Posted September 26, 2006 Thank you, I just found it in the documentation, but you were faster ^^
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