T
toddr
i have some code that deletes image files from a network folder. the code
lists the contents of the folder to a file, reads thru and uses the kill
statement to delete them. once all the files have been removed i want to use
the RmDir command to get rid of the folder. the problem seems to be that the
folder sometimes will contain a Thumbs.db file. the Thumbs.db file does not
seem to get deleted in the code. i have tried Kill (path & "*.*") and Kill
(path & "thumbs.db") and get an error. I also get an error when i try to use
the RmDir when the thumbs.db file is still in there. If i delete manually
using windows explorer it works file.
Is this because the Thumbs.db is a system file? If so, is there a way to
delete system files using code? Anyone?
lists the contents of the folder to a file, reads thru and uses the kill
statement to delete them. once all the files have been removed i want to use
the RmDir command to get rid of the folder. the problem seems to be that the
folder sometimes will contain a Thumbs.db file. the Thumbs.db file does not
seem to get deleted in the code. i have tried Kill (path & "*.*") and Kill
(path & "thumbs.db") and get an error. I also get an error when i try to use
the RmDir when the thumbs.db file is still in there. If i delete manually
using windows explorer it works file.
Is this because the Thumbs.db is a system file? If so, is there a way to
delete system files using code? Anyone?