Timo Posted December 22, 2004 Share Posted December 22, 2004 Hello together, I want to check with my program if a directory is empty or not. If a file is in this directory I want to send a short email. Is this possible with AutoIt? Has someone an idea how to program this? I really don't know how to start. Thanks, Timo Bye...,Timo Link to comment Share on other sites More sharing options...
Nova Posted December 23, 2004 Share Posted December 23, 2004 I want to check with my program if a directory is empty or notThis should get you started$size = DirGetSize("C:\Images", 1) IsArray ($size) If $size[0] = 0 Then MsgBox(4096,"", "Directory empty") Else MsgBox(4096,"", "Directory not empty") Endif Link to comment Share on other sites More sharing options...
Timo Posted December 23, 2004 Author Share Posted December 23, 2004 Hi Nova, ok. This works, but how to send a info via email that the directory is not empty? Do you have any ideas? Bye, Timo Bye...,Timo Link to comment Share on other sites More sharing options...
SumTingWong Posted December 23, 2004 Share Posted December 23, 2004 (edited) Hi Nova,ok. This works, but how to send a info via email that the directory is not empty?Do you have any ideas?Bye,Timo<{POST_SNAPBACK}>These are a few different ways to send mail:- UDF calling an external SMTP mailer, in this case blat.exe, look here- UDF calling Larry's TCP functions in AU3Xtra.dll, look here. You can download Larry's AU3Xtra.dll http://www.autoitscript.com/fileman/users/Larry/au3xtra.dll- UDF to send mail via your browser, look hereThe first 2 methods require access to an SMTP server. Edited December 23, 2004 by pacman Link to comment Share on other sites More sharing options...
Timo Posted December 23, 2004 Author Share Posted December 23, 2004 Hello pacman, great. Thank you for your posting. And by the way, you are very very fast. I will now study which one is the best for me. Thanks a lot, Timo Bye...,Timo 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