LoginSignup
3
4

More than 5 years have passed since last update.

PowershellでDLL/EXEファイルのバージョン一覧を出す。

Posted at

配下のファイルのバージョンを一覧で出す。


ls | sort  | ?{ $_.Name -like '*.dll' -or $_.Name -like '*.exe'} | %{echo $($_.name + "`t" + (Get-ItemProperty $_).VersionInfo.FileVersion)}

別のディレクトリにあるファイルを、現在のディレクトリ配下にあるファイルでフィルタし、バージョン一覧を取得する。


ls | sort  | ?{ $_.Name -like '*.dll' -or $_.Name -like '*.exe'} | %{$_.name} | %{echo $($_ + "`t" + (Get-ItemProperty $("C:\SomeSystem\HogePath\" + $_) ).VersionInfo.FileVersion)}

僕はリリース用モジュールと、本番稼働モジュールのバージョンの違い一覧を見たい場合とかに使ってる。

3
4
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
3
4