本帖最后由 pcl_test 于 2016-6-29 00:56 编辑
- //&cls&more +5 "%~f0"|cscript -nologo -e:jscript "%~f0"&pause&exit
- var txt = WSH.StdIn.ReadAll();
- var str = txt.match(/\s*?Batch\s*?Name\s*?:[ \t]*([^\r\n]+)/);
- WSH.echo(txt.replace(/([\r\n]([^\|\r\n]+?\|){4})A4/g, '$1'+str[1]));
- /*举个栗子
- ============================================================================
- ICOS Bga INSPECTION - BATCH REPORT
- -
- Start : 5/3/2016 2:24:18 AM Version : 13
- -
- Batch Name : 600001164618
- Batch Spec. : Skylake2+2LTH Lot No. : 600001164618
- ……
- -
- ……
- 1| 1| 1| 1|A4 200|HW300 -107|EW157 93| 200| | | |X 200|..
- 1| 1| 2| 2|A4 127|HW4 -76|DD206 51| 127| | | |X 127|..
- ……
- */
复制代码
|