I have created a Textbox - Browse for File function on my form. The output from the Files selected will be displayed. I will then use ‘openfiledialog.filenames’ to be used in CMDlet that references the file names that were selected. This works perfectly. However the end result needs to be changed. The only way I can do this is by making sure that a file that will always contain 195 in the filename be selected first. The openfiledialog and the textbox will always sort alphabetically. I would like to be specfic about what file it uses first or in order of my desire. I tried adding a -contains switch after openfiledialog.filenames but it did not work or the most likely scenario that this isnt what I need or I am simply using the switch wrong.
If someone could help me sort this. I will be forever thankful. I have spent much time on this project and this last detail feels like a brick wall for me right now. Thanks again.