バッチファイル例
@echo off setlocal set LIST_INSTANCE=list-instance.txt CALL asadmin list-instances | findstr /V "list-instances" > %LIST_INSTANCE% for /F "tokens=1" %%p in (%LIST_INSTANCE%) do @( echo %%p ) ENDLOCAL