Zomp Posted March 20, 2008 Share Posted March 20, 2008 I wish to monitor any file change in some folder (a new file is created, a file is deleted, a file is changed). Is it possible to do it? And if yes, how? Many thanks. Link to comment Share on other sites More sharing options...
d4rk Posted March 20, 2008 Share Posted March 20, 2008 have a look at here http://www.autoitscript.com/autoit3/docs/f...ndFirstFile.htm and here http://www.autoitscript.com/autoit3/docs/f...indNextFile.htm [quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys Link to comment Share on other sites More sharing options...
Aassdd Posted March 20, 2008 Share Posted March 20, 2008 (edited) You can also use FileGetSize and then compare sizes. $size1 = FileGetSize("path") ... $size2 = FileGetSize("path") If $size1 <> $size2 Then MsgBox(0, "", "File has been changed.") Edited March 20, 2008 by Aassdd Link to comment Share on other sites More sharing options...
ResNullius Posted March 20, 2008 Share Posted March 20, 2008 I wish to monitor any file change in some folder (a new file is created, a file is deleted, a file is changed). Is it possible to do it? And if yes, how?Many thanks.For methods tied to the actual file system events, check ptrex's here http://www.autoitscript.com/forum/index.ph...=42511&st=0 and arcker's here http://www.autoitscript.com/forum/index.ph...st&p=337058 Link to comment Share on other sites More sharing options...
Zomp Posted March 21, 2008 Author Share Posted March 21, 2008 For methods tied to the actual file system events, check ptrex's here http://www.autoitscript.com/forum/index.ph...=42511&st=0 and arcker's here http://www.autoitscript.com/forum/index.ph...st&p=337058Thanks for your useful links.In arcker post, he says that when monitoring subdirectories his script consumes a lot of resources, and he suggests to "sink everydirectory". Do you understand what does it mean? Link to comment Share on other sites More sharing options...
ResNullius Posted March 21, 2008 Share Posted March 21, 2008 Thanks for your useful links.In arcker post, he says that when monitoring subdirectories his script consumes a lot of resources, and he suggests to "sink everydirectory". Do you understand what does it mean?Actually, I don't. I haven't really played with his version beyond running his example (because I didn't really uderstand it all).I just knew that it would probably be useful someday and I'd look at it then and try to figure it out.So far, I've been mostly using ptrex's idea. 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