Board logo

标题: [求助]FOR批处理? [打印本页]

作者: wmt333     时间: 2010-7-10 20:05    标题: [求助]FOR批处理?

我用Driver Genius professional Edition 2007提取驱动,将驱动放于D:\DRV位置,其中里面有多个文件夹,用命令dir /a /b /o-n >list.txt查看得到list里内容为:
Winbond HID CIR Receiver
VMware Virtual Ethernet Adapter for VMnet8
VMware Virtual Ethernet Adapter for VMnet1
Teefer2 Miniport#2
Teefer2 Miniport#1
Teefer2 Miniport
Ricoh xD-Picture Card Controller
Ricoh SD MMC Host Controller
Ricoh Memory Stick Host Controller
Realtek High Definition Audio
Mobile Intel(R) 965 Express Chipset Family#1
Mobile Intel(R) 965 Express Chipset Family
Intel(R) ICH8 Family SMBus Controller - 283E
Broadcom NetLink (TM) Gigabit Ethernet
Atheros AR5007EG Wireless Network Adapter
Agere Systems HDA Modem
1394 网络适配器

在这些文件夹中,每个文件夹中都有一个BackupLog.txt文件,前6行都是我不想要的内容,我想将这些文件除去前6行,生成一个新的文件backuplog.inf,并将这个驱动文件夹中所有目录中backuplog.inf中的内容合并成一个新的文件D:\DRV.inf,怎么用for来实现它?还望高手解答。