LoginSignup
0
1

More than 5 years have passed since last update.

Windowsにてファイル一覧をコマンドで取得する

Last updated at Posted at 2019-03-05

フォルダ内のファイルをリストアップしたい

フォルダ内のファイルをリストアップしたい
(したいというより、してくれ!という機会が多いと思いますが。。。)

qiita.rb
dir *.* /s /b (対象のディレクトリのフルパス) C:\hoge\hogehoge\hogegenoge > (出力先フルパス)C:\hoge\test.csv

中身

冒頭のアスタリスクは拡張子などの指定
sで再帰的にフォルダ内を見てくれます。
bでファイルまで見てくれます。

終わり!

参考

Windowsのdirコマンドでファイル名の一覧を取得する
【Windows】フォルダ内のファイル名一覧を簡単に作成する方法

ありがとうございますっ!

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1