I have this app that kills a file thats been copyied to the desktop, it reads the path of the file fom text.txt then kills myapp.exe, only problem is that it only work if i have the msgbx before kill "" etc.. i have tried a sleep but that doesnt work, get file access error, i'm thinking you need a delay there because it takes a bit of time to read in the file then send it to step1 etc... but a msgbox is no use for me. Well this maybe be tricky to understand but any suggestions would be geat.

Code:
Open "F:\Documents and Settings\mine\Desktop\text.txt" For Input As #1
Input #1, step1
Close #1

MsgBox "FINE"

   Kill "" & step1 & "myapp.exe"