PowerShell -Part 4at TECH
PowerShell -Part 4 - 暇つぶし2ch703:デフォルトの名無しさん
20/11/07 21:29:59.64 AAgSLehy.net
こんなシェルを書きました。
function get_stop_code {
$hoge=(Get-Content stop_code.txt)
}
while ($true) {
get_stop_code
Write-Output $hoge
}
シェル実行中に、stop_code.txtの中身を書き換えても
get_stop_codeがファイルの中身を拾ってくれません
いろいろ試したら、こうしたらうまくいきました。がすっきりしません。
function get_stop_code {
$hoge=(Get-Content stop_code.txt)
Write-Output $hoge
}

while ($true) {
$stop_code=(get_stop_code)
write-output $stop_code
}

get_stop_codeがファイルの中身を、while ($true)の中でうまく拾ってくれる
書き方を教えてください。


次ページ
続きを表示
1を表示
最新レス表示
レスジャンプ
類似スレ一覧
スレッドの検索
話題のニュース
おまかせリスト
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch