LoginSignup
2
3

More than 5 years have passed since last update.

PowerShellでファイル名をリスト化する

Posted at

Windows PowerShell 備忘録

フォルダー内のファイル名をテキストファイルに列挙させます。 

該当フォルダーで右クリック、メニューストリップから「PowerShellウィンドウをここで開く」を選択。

get-childitem -recurse -name > nameOfFolder/files.txt

※PowerShellを利用するには、.Net Frameworkが導入されている必要があります。

-name のほかの属性は以下の通り。

属性 意味
Attributes 属性の値
CreationTime 作成年月日
Extension 拡張子
FullName 絶対パス
LastAccessTime 最終アクセス年月日
LastWriteTime 最終更新年月日
Length ファイル・サイズ
Name フォルダ/ファイル名
2
3
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
2
3