3
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

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
5
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
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?