The system cannot find the drive specified.
エラーが発生した場合The system cannot find the path specified.
、「fld_chk.out」ファイルをチェックしてループを発生させることができるWindowsバッチプログラムを開発しようとしています。
しかし、cd A:\rr\Br>fld_chk.out はこれらのエラーをキャプチャしていません。
標準エラーをキャプチャする方法は?
私のコードは次のようなものです:-
cd A:\rr\Br>fld_chk.out
cd B:\yy\dd>>fld_chk.out
find /c "The system cannot find" *.out>fld_count_check_1.out
find /c "0" fld_count_check_1.out>fld_count_check_2.out
FOR /F "TOKENS=1* DELIMS=:" %%B IN (fld_count_check_2.out) DO SET b=%%C
set _count=%b%
IF %_count% EQU 2 goto Success
IF not %_count% EQU 2 goto notSuccess
:Success
echo folder found
:notSuccess
echo folder not found
前もってありがとう