-2
私はこれを尋ねて、私自身で答えを思いついた。下記の例を参照してください。Powershell Script to Outputを作成するにはどうすればいいですか?exampleファイルをtxtファイルに変換しますか?
私はこれを尋ねて、私自身で答えを思いついた。下記の例を参照してください。Powershell Script to Outputを作成するにはどうすればいいですか?exampleファイルをtxtファイルに変換しますか?
$filename = Read-Host -Prompt 'Input the Command you want examples for'
$pathloc = Read-Host -Prompt "Enter the path of where the example files will be stored"
get-help $filename -Examples | Out-File ($pathloc + $filename + ".txt")