How do I look for a file with no extension and delete it. VB.net 2005
Posted on 2011-02-16
I want to do house keeping on a folder via my VB App. I have Alpha Numeric files with no extension that is being copied everytime an excel file is created. They are always 8 characters in length. I want to look in the folder and if those files are present delete them. This what I've tried, but it doesn't work.
Dim file5 As String = "N:\Archive\*.*"
If System.IO.File.Exists(file5).Length = 8 Then