- 【.cmd】 バッチファイルスクリプト %10 【.bat】
583 :デフォルトの名無しさん[sage]:2014/06/16(月) 05:13:49.05 ID:MvWKj145 - >>581
@echo off set c=0 call :sub "iniファイル" goto :eof :sub setlocal if not exist "%~1" goto :eof echo: echo === %~1 === for /f "usebackq tokens=*" %%i in ("%~1") do ( for /f "tokens=1,2 delims==" %%j in ("%%~i") do ( if "%%k" neq "" call :sub2 %%k ) echo %%i ) set /a c-=1 if c geq 0 call :sub %%p%c%%% endlocal goto :eof :sub2 for /f "tokens=*" %%x in ("%~1") do set p=%%~x if not exist "%p%" goto :eof call :sub3 "%~1" if %flag% equ 0 goto :eof set p%c%="%~1" set /a c+=1 goto :eof
|
- 【.cmd】 バッチファイルスクリプト %10 【.bat】
584 :デフォルトの名無しさん[sage]:2014/06/16(月) 05:15:59.30 ID:MvWKj145 - :sub3
setlocal set flag=1 :sub3_loop set /a c-=1 if %c% lss 0 goto :sub3_end call set pp=%%p%c%%% if %pp% neq %1 goto :sub3_loop set flag=0 :sub3_end endlocal&set flag=%flag% goto :eof iniファイル中にある xxx = ファイルパス を全部表示する =の後には空白や[tab]は許す
|
- 【.cmd】 バッチファイルスクリプト %10 【.bat】
585 :デフォルトの名無しさん[sage]:2014/06/16(月) 05:22:23.71 ID:MvWKj145 - なお
iniファイルやtxtファイルの中にさらに xxx = ファイル があったらそれも全部表示する
|
- 【.cmd】 バッチファイルスクリプト %10 【.bat】
589 :デフォルトの名無しさん[sage]:2014/06/16(月) 22:09:13.33 ID:MvWKj145 - >>588
実際には使い物にならないからそのつもりで
|