有一个1.txt文件,内容如下:
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 2.0.50727; MS-RTC LM 8)
Host:
www.hhhchina.net
Content-Length: 21
Connection: Keep-Alive
Cache-Control: no-cache
id=17&kid=2&code=1000
想法
让“code=”后的“1000”的位置用4位的随机数字替换。
替换后的效果就是在批处理的for循环中,调用1.txt,每执行一次
code=****都是不同的4位数。
请教如何实现?