外部変形は データのやり取りをテキストファイルで行うので プログラム言語は 自由に選ぶことができます。図形は機能的かつシンプルなため、数多くのユーザーに受け入れられています。
パワーシェルで線色を取得する(lc)
:パワーシェルで線色を取得する(lc)
@echo off
for /f "delims=:" %%n in ('findstr /n "^#!" %0') do (
more +%%n %0 | powershell -command -
)
goto:eof
REM #jww
REM #e
#!ここから more +n %0 の n 行目:最初の行は 0 行
(gc jwc_temp.txt) | foreach {
switch -regex -case ($_)
{
'^lc' {
$plc = $_.substring(2,1)
if ($lc -eq $null) { $lc = $plc }
"h#lc=$lc"
}
}
} | sc jwc_temp.txt
#ここまで powershell は 文末に必ず空白行を置いてください