I am using the following code to delete files.
Const DeleteReadOnly = True
Set objFSO = CreateObject("Scripting.FileSystemObject")
objFSO.DeleteFile("Q:\Company\Forms\*.PTR"), DeleteReadOnly
The code works great as long as their is a PTR file in the folder to delete.
If their is no PTR file in...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.