par2.exeはpathによろしくにゃい2バイトが挟まってると失敗するんだが、ファイル名は致し方にゃいとして、ディレクトリに関しては回避できるので回避してみる。
subst x: .
pushd x:\
par2 c 〜
popd
subst x: /d
ただ、x:が決め打ちににゃるのが美しくにゃい。pushdで\\localhost\c$〜という手もあるが、
set drv=
call :search_free_drive drv
@echo free_drive : %drv%:
subst %drv%: . || pause
pushd %drv%:\ || pause
echo nice -19 "%par%" c -b32700 -r3 -m50 -n1 par2 %_x%
nice -19 "%par%" c -b32700 -r3 -m50 -n1 par2 %_x%||echo.
popd
subst %drv%: /d || pause
goto :EOF
:search_free_drive
set free_drive=
for %%d in (a b c d e f g h i j k l m n o p q r s t u v w x y z) do ^
call :search_free_drive_sub1 %%d
set %1=%free_drive%
exit /b
:search_free_drive_sub1
if not "%free_drive%"=="" exit /b
rem @echo %1:?
subst %1: . >NUL || exit /b
subst %1: /d
rem @echo found %1:
set free_drive=%1
exit /b
これで自動探索するはず。
・・・っていうか.c書き換えるべき(笑)
懐が深いのか浅いのかちっともわからにゃい大石まさる。
今回も動物分は少にゃめだが、離散時系列の相関ストーリーが綴られる様子が心地よいのと、それぞれのエピソードが大石まさるしてていい感じにゃので続きも買う。