システム日付のファイルなどを作成する時に、
test.ps1
$today = Get-Date -Format yyyyMMdd
"$today.txt"
だと一度変数に展開しないといけないので
test.ps1
"$(Get-Date -Format yyyyMMdd).txt"
これだとわざわざ変数に展開せずに済む。
Go to list of users who liked
More than 5 years have passed since last update.
システム日付のファイルなどを作成する時に、
$today = Get-Date -Format yyyyMMdd
"$today.txt"
だと一度変数に展開しないといけないので
"$(Get-Date -Format yyyyMMdd).txt"
これだとわざわざ変数に展開せずに済む。
Register as a new user and use Qiita more conveniently
Go to list of users who liked