@echo off
Setlocal enabledelayedexpansion
for /f "delims=\ tokens=1,2,3,4" %%a in ('dir /s N:\DrvPath\*.inf /b') do (
set s=!s!;%%a\\%%b\\%%c)
echo,regedit4>>drv.reg
echo,>>drv.reg
echo,[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion]>>drv.reg
echo,>>drv.reg注册表文件直接打不行,用edit保存覆盖还不行。
echo,"DevicePath"="%%SystemRoot%%\inf!s!">>drv.reg
欢迎光临 无忧启动论坛 (http://bbs.wuyou.net/) | Powered by Discuz! X3.3 |