Another program creates a few cache files wich i want to delete there are certain characters that are always the same in the name at the start "D20" and then the rest of the characters are random. I want to check if this file exists by using the dir function and then if it does exist delete it.
'retval1 = Dir$(App.Path & "\D20*.dat" )
'If retval = "\D20*.dat" Then
'Kill...
User Profile
Collapse
-
-
Help comparing and killing.
Hi I am having a little bit of trouble looking for a file in a directory that has random letters & numbers after "D20" how would i use the Dir command to check if this file exists while using the InStr function to get the file name of the file starting with "D20" and then killing it.
Much help is appreciated thanks.
No activity results to display
Show More
Leave a comment: