|
-
Sep 14th, 2000, 06:28 PM
#1
Thread Starter
Frenzied Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|