Jun 4, 2016 Hi all. I have been using this little routine in one language or another for many many years. It allows you to not have to check if the files exists first before deleting it. Happy coding! Code: Copy Public Sub SafeKill(pFolder As String, pName As String) Try File.Delete(pFolder,pName) Catch End Try'ignore End Sub Click to expand...
Hi all. I have been using this little routine in one language or another for many many years. It allows you to not have to check if the files exists first before deleting it. Happy coding! Code: Copy Public Sub SafeKill(pFolder As String, pName As String) Try File.Delete(pFolder,pName) Catch End Try'ignore End Sub