I want to delete a file each time I run a certain function just
to make sure the file does not already exist.

I used the following command at the start of the routine:

Kill "c:\es*.dat"

But, if the file doesn't already exist, I get an error..

How should I re-write the above code to only Kill if the files exists
or how to ignore the error (without using On Error Resume Next) if the file
doesn't exist?

Thanks for the help..

Dan