本帖最后由 flashercs 于 2020-5-29 06:33 编辑
ping_aly_base.txt- FOR /F "tokens=1-2 delims= " %%i IN (C:\Users\Administrator\Desktop\scom\log\%1_scom_1_A.txt) DO if %%j==timed echo %1_%3 _scom_1_A is timeout>>ping_report.txt
- FOR /F "tokens=1-2 delims= " %%i IN (C:\Users\Administrator\Desktop\scom\log\%1_scom_2_A.txt) DO if %%j==timed echo %1_%3 _scom_2_A is timeout>>ping_report.txt
- FOR /F "tokens=1-2 delims= " %%i IN (C:\Users\Administrator\Desktop\scom\log\%1_scom_3_A.txt) DO if %%j==timed echo %1_%3 _scom_3_A is timeout>>ping_report.txt
- FOR /F "tokens=1-2 delims= " %%i IN (.\log\%1_scom_4_A.txt) DO if %%j==timed echo %1_%3 _scom_4_A is timeout>>ping_report.txt
- FOR /F "tokens=1-2 delims= " %%i IN (.\log\%1_scom_5_A.txt) DO if %%j==timed echo %1_%3 _scom_5_A is timeout>>ping_report.txt
- FOR /F "tokens=1-2 delims= " %%i IN (.\log\%1_scom_6_A.txt) DO if %%j==timed echo %1_%3_ scom_6_A is timeout>>ping_report.txt
-
- FOR /F "tokens=1-5 delims= " %%i IN (.\log\%1_scom_1_A.txt) DO if %%j==from if %%l==Destination echo %1_%3 _scom_1_A is Destinationecho>>ping_report.txt
- FOR /F "tokens=1-5 delims= " %%i IN (.\log\%1_scom_2_A.txt) DO if %%j==from if %%l==Destination echo %1_%3 _scom_2_A is Destinationecho>>ping_report.txt
- FOR /F "tokens=1-5 delims= " %%i IN (.\log\%1_scom_3_A.txt) DO if %%j==from if %%l==Destination echo %1_%3 _scom_3_A is Destinationecho>>ping_report.txt
- FOR /F "tokens=1-5 delims= " %%i IN (.\log\%1_scom_4_A.txt) DO if %%j==from if %%l==Destination echo %1_%3 _scom_4_A is Destinationecho>>ping_report.txt
- FOR /F "tokens=1-5 delims= " %%i IN (.\log\%1_scom_5_A.txt) DO if %%j==from if %%l==Destination echo %1_%3 _scom_5_A is Destinationecho>>ping_report.txt
- FOR /F "tokens=1-5 delims= " %%i IN (.\log\%1_scom_6_A.txt) DO if %%j==from if %%l==Destination echo %1_%3_ scom_6_A is Destinationecho>>ping_report.txt
复制代码 另外%3是否改为%2呢? |