This does not seem to work at all. If there is ANY change what so ever within "AIM Logs" directory, including the subfolders I would like a copy of the entire "AIM Logs" to be copied to another directory. I am unable to name the subfolders in the search because new names might be added and I wouldn't be able to keep track of it all that way. This is what I have as a script on an XP computer SP2 computer. Dim change_found, boolean Dim( count, number ) START: DirWaitForUpdate "C:\\Documents and Settings\\Owner\\My Documents\\AIM Logs\\", 0, change_found // OK, some change is found // Let's wait 5 seconds, just in case if the change is not completed yet Wait 5 // Copy all data files from data directory to the backup directory FileCopyEx( "C:\\Documents and Settings\\Owner\\My Documents\\AIM Logs\\*.*", "c:\\downloads", count ) // start watching again GoTo START
|