After three hours I'm really stuck on this one guys, any help people could provide would be great. What I'm doing is opening up a lotus notes program, making some alterations and saving the file. Lotus does the copying within the program, it doesn't provide any notification when the copying is finished, but I need to know when the copying is done before the script can continue. I'm using the following code right now: Do $attribute = FileGetTime($FiletoCheck,0,1) SLEEP(3000) $at