PowerShellがあれば、文字コード変換も簡単です。
ファイルからファイルへ、例えば、UTF-8からUTF-7へ。
powershell "get-content utf8.txt -encoding utf8|set-content utf7.txt -encoding utf7"
powershell "get-content utf8.txt -encoding utf8|add-content utf7.txt -encoding utf7"
powershell "get-content utf8.txt -encoding utf8|out-file utf7.txt -encoding utf7"
フィルタで、例えば、UTF-8からUTF-7へ。
powershell "[console]::inputencoding=[text.encoding]::getencoding('utf-8');[console]::outputencoding=[text.encod
ing]::getencoding('utf-7');$input" < utf8.txt >utf7.txt
« タスクスケジューラのタスクに引数を与えて起動する。 | トップページ | VistaにはCLIPBRD.EXEがない。 »