実行するPowerShellファイル
.フルパス/log.ps1 .フルパス/HashTable.ps1 log -message "ファイルに出力したい文字" log -message $HashTable["0"]
ハッシュテーブルファイル
$HashTable = @{ "0" = "値(ああああ)"
ログを出力するPowerShellファイル
function log{ Param( $message ) Add-Content -LiteraPath "出力したいフルパス/log.txt" -Value $message -Fprce }
出力結果
ファイルに出力したい文字 値(ああああ)
The following two tabs change content below.
https://gotoyusuke.com/
最新記事 by YusukeGoto (全て見る)
- 【WordPress】RSSで外部のサイトから記事を取得する方法 - 2020年10月11日
- 【WordPress】関連記事一覧を表示する方法 - 2020年10月11日
- 【CSS】CSSの基本 - 2020年10月10日
コメントを残す