sbjatje
新手上路
积分 4
发帖 4
注册 2010-9-6
状态 离线
|
『楼 主』:
批处理中字符的查找与替换问题,,,
我想为一个安装软件写一个批处理让其自动运行,,,现要遇到问题了,
我想把如下面的txt文件中的 00-1D-7D-74-B5-C7 查找出来,并改为电脑的id号 (电脑的id号,是通过开始--运行--cmd--ipconfig/all里面获得的,我也只知道这样一种获取方法)
请路过的高手们帮我看下,万分感谢,,,
###################################################################
#
# replace 00-1D-7D-74-B5-C7 in every-feature with your real ptc_hostid
# as shown in setup
#
###################################################################
INCREMENT PROE_DDiTy ptc_d 29.0 permanent uncounted \
VENDOR_STRING="VSVER=2.0 LO=(0,3,6,7,9,10,14,16,17,19,21,22, \
23,24,25,26,29,30,31,32,34,35,36,37,40,41,45,47,48,51,52,53, \
54,55,56,57,59,60,61,62,63,65,66,67,69,71,72,73,74,77,91,92, \
93,94,97,100,104,106,108,115,116,117,118,119,120,121,122,123, \
125,126,127,128, 131,133,134,135, 137,139,140,141,148,155,156, \
158,160,163,164,167,168,187,188,189,190,191,192,193,194,208,209,210, \
213,214,218,219,220,221,222,223,224,251,253,259,260,261,262,263,264,275)" SUPERSEDE \
HOSTID=PTC_HOSTID=00-1D-7D-74-B5-C7 vendor_info="VIVER=2.0 EXTERNAL_NAME=" ISSUER=ODT \
ISSUED=2-apr-2006 NOTICE=PTC SN=07071982 SIGN="092F DBD8 F7BA
[ Last edited by sbjatje on 2010-9-7 at 10:10 ]
|
|