thank you so much, my teachers. I am newbie so i want to write a Script: 1. When i finished play videos my Script will delete that videos. Because when we playing videos, our script can not delete them. 2. my videos has Patch: C:WindowsDirtest*.avi ~ @WindowsDir & "test*.avi Therefore, my script is impossible: If FileExists(@WindowsDir & "test*.avi") Then FileDelete(@WindowsDir & "test*.avi") Can you help me, please. thanks