May-19-2019, 01:35 PM
Hi,
In a given directory there will always exist only one file contains the partial name"config_file", and I want to match which file name contains partial file name "config_file" and grab that full name of the file. Suppose,
in a given directory:
"D:\mainfolder"
maybe there are
"initial.csv"
"final.csv"
"config_file_data.csv"
"data.csv"
out of all CSV files, the file contains "config_file" is "config_file_data.csv", and I want to report this file name. Actually, periodically the files are updated, and but always there will be one file contain the name "config_file", and that I want to catch.
In a given directory there will always exist only one file contains the partial name"config_file", and I want to match which file name contains partial file name "config_file" and grab that full name of the file. Suppose,
in a given directory:
"D:\mainfolder"
maybe there are
"initial.csv"
"final.csv"
"config_file_data.csv"
"data.csv"
out of all CSV files, the file contains "config_file" is "config_file_data.csv", and I want to report this file name. Actually, periodically the files are updated, and but always there will be one file contain the name "config_file", and that I want to catch.