I put a few lines of code in the app I'm working on to kill some files:

File = Dir$(MyDir)
Do While File <> ""
MyStr = Left(File, 4)
If MyStr = "test" Then
MyTemp = MyDir + File
kill MyTemp
End If
File = Dir$
Loop

Right after I typed that in it worked. But now I always get a "Compile Error: Invalid use of Property", and VB takes the K down to lowercase.... without blue coloring as if not recognizing it as a command.

I really can't figure out what the problem is... it did work the first time!

Thanks for any help