So I know in the following code example, it checks to see if a file exists (full filename)...
If My.Computer.FileSystem.FileExists("C:\Temp\Test.cfg") Then
MsgBox("File found.")
Else
MsgBox("File not found.")
End If
...But what about if part of the a file exists? There is no standard naming convention to the files but they will always have a .cfg extention.
So I want to check if C:\Temp contains a *.cfg file and if it exists, do something, else do something else.