hello all I’m making a process that will import a list of all the files in a given folder for processing.
hoever I only want the files to go through the process if they are a PDF
so far for importing the list of files to be processed I have the following code
Dim files() As String = IO.Directory.GetFiles(txtfolderpath.Text)
For Each file As String In files
is there a way to restrict either the io.directory.get files method to only grab the details of files that have the extention.pdf.
or is there something simple i can add just after the “For file” line that basically checks the file extention of the file path and if its not a .pdf then allow me to throw up a message box saying something like “warning (file) is not a pdf this process should only be used for processing pdf files. please check the contents of the target folder and trying running again.