残念ながら、あくまでもファイル名検索のことです。
特定ディレクトリ(フォルダ)配下のJPEG画像のみの一覧をテキスト形式で欲しい場合、
1 |
dir /S /B *.jpg > result.txt |
とすれば、result.txtには、該当ファイルがフルパスで取得可能です。
わかりやすい例を出すと、特定ディレクトリ(フォルダ)配下の画像(*.jpgや*.pngなど)の検索は、Windowsならエクスプローラから実行可能です。
ただし、その結果は、GUIであるが故、再利用には向きません。
そこで、上記ような簡単なDOSコマンドで用途の広がるテキスト形式で結果を得ることが可能となります。
オプションの”/S”、”/B”についは、
1 |
dir /? |
で確かめてください。
No comments yet. You should be kind and add one!
By submitting a comment you grant typista a perpetual license to reproduce your words and name/web site in attribution. Inappropriate and irrelevant comments will be removed at an admin’s discretion. Your email is used for verification purposes only, it will never be shared.