Hi Group, I attempting to save a file to a specific folder that is begins with the hotels property number. Currently I've manually listed the properties complete folder name in a text file. This is proving to be a management problem that needs to be fixed. The code I'm using to find and save the file looks like this: Using reader As New StreamReader("O:\IPSDATA\Property Folder Names.txt") While Not reader.EndOfStream Dim line As String = reader.ReadLine() If line.Contains(propertyNo2) Then hotelFolder = line Exit While End If End While End Using ' setting the path name to save the converted file fileSave …

Member Avatar
Member Avatar
+0 forum 2

Group, In a post in VB 4/5/6, I question how to open a file with a wildcard as the file extension ([https://www.daniweb.com/software-development/visual-basic-4-5-6/threads/488809/accessing-a-file-with-a-ever-changing-name](null). That worked fine for VBA. However I'm trying to do the same thing using VB.net. I'm having trouble finding the correct syntax. I hope you can help. Specifically, I have to find a file that has a varying file extension. The file name will be the creation date. The file extension is the time the file was created. So the file name looks like this: "20141216.042615". So I need to write my code so that it will go …

Member Avatar
Member Avatar
+0 forum 11

The End.