2009-10-16から1日間の記事一覧
ただし1ライン限定 @echo off for /f "delims=" %%i in ('%~2') do set %1=%%~i>setresult test "echo hello" >echo %test% hello
@echo off for /f "tokens=2 delims=," %%i in ('tasklist /v /fo csv /nh /fi "windowtitle eq %~1"') do echo %%~i
ただし1ライン限定 @echo off for /f "delims=" %%i in ('%~2') do set %1=%%~i>setresult test "echo hello" >echo %test% hello
@echo off for /f "tokens=2 delims=," %%i in ('tasklist /v /fo csv /nh /fi "windowtitle eq %~1"') do echo %%~i