指定のフォルダパスを取得するメソッド(複数条件)

あるフォルダ内に下記のファイルがあります。

2021_A.xlsx
2021_B.xlsx
1999_A.xlsx

この中で、2021_A.xlsxのファイルパスを取得したいです。

指定のフォルダパスを取得するメソッド
System.IO.Directory.GetFiles(フォルダパス,“”)
の「“”」部分に複数の条件を指定する(「2021」and「A」)ことは可能でしょうか?
また、その際はどのような書き方になりますか?

@TAKAHITO
Try this
GetFilePath.zip (18.8 KB)

1 Like

ありがとうございます!
条件分岐+countainを使用すると取得できますね!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.