VB.Net File Location Tip

System.IO.Path.Combine()

When setting a file name and path you may put:

savedFilename = folderToSaveTo & “/”  & shortFileName

Instead why not use:

savedFilename = System.IO.Path.Combine(folderToSaveTo, shortFileName)

Leave a Reply

Your email address will not be published. Required fields are marked *