The following code in a windows service alway returns false:
Dim f As New IO.FileInfo(sourceFolder)
If f.Exists = 1 Then
LogError("FILE EXISTS " & f.FullName)
LogError("FILE DOES NOT EXIST " & f.FullName)
This is the value of f - - C:\FileExchange\Appointments\Pending
And it contains the file -- Text Document.txt
I won't always know the name of the text file, and there may be 1 or more. I need to check that there are files in the folder before I process them.