Hi All,
Beginner here trying to write his first vb.net program. Any help would be greatly appreciated.
I want to be able to delete all *.tmp files within all sub folders of my D:\
I am using the command:
Try
Kill("D:\*.tmp")
Catch ex As Exception
MsgBox("Error: " & ex.Source & ": " & ex.Message, MsgBoxStyle.OkOnly, "No tmp files found !!")
End Try
Ideally what I would like is: Delete all D:\*.tmp files, then have a message box giving the total number deleted or a message saying no temp files found if that's the case.
Thanks in advance for any pointers.
Cheers
Stephen
Beginner here trying to write his first vb.net program. Any help would be greatly appreciated.
I want to be able to delete all *.tmp files within all sub folders of my D:\
I am using the command:
Try
Kill("D:\*.tmp")
Catch ex As Exception
MsgBox("Error: " & ex.Source & ": " & ex.Message, MsgBoxStyle.OkOnly, "No tmp files found !!")
End Try
Ideally what I would like is: Delete all D:\*.tmp files, then have a message box giving the total number deleted or a message saying no temp files found if that's the case.
Thanks in advance for any pointers.
Cheers
Stephen