外部変形は データのやり取りをテキストファイルで行うので プログラム言語は 自由に選ぶことができます。図形は機能的かつシンプルなため、数多くのユーザーに受け入れられています。
パワーシェルで線種を取得する(lt)
:パワーシェルで線種を取得する(lt)
@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 ($_)
{
'^lt' {
$plt = $_.substring(2,1)
if ($lt -eq $null) { $lt = $plt }
"h#lt=$lt"
}
}
} | sc jwc_temp.txt
#ここまで powershell は 文末に必ず空白行を置いてください