echo Windows Registry Editor Version 5.00 >>tmp.txt
echo >>tmp.txt
echo >>tmp.txt
echo >>tmp.txt
echo @="regsvr32 %1" >>tmp.txt
echo >>tmp.txt
echo "Command"="regsvr32 %1 /u" >>tmp.txt
echo >>tmp.txt
echo @="regsvr32 %1 /u" >>tmp.txt
rename tmp.txt tmp.reg
start /wait regedit /s tmp.reg
del /q tmp.reg
exit
这是在右键上添加"注册.注销控件"的批处理
为什么执行后
本应是"regsvr32 %1 /u"的值
在注册表查看
变成"regsvr32 /u" 而少了%1.
这是为什么?
请大虾给出正确写法
[ Last edited by eech on 2007-3-13 at 12:02 PM ]
echo >>tmp.txt
echo >>tmp.txt
echo >>tmp.txt
echo @="regsvr32 %1" >>tmp.txt
echo >>tmp.txt
echo "Command"="regsvr32 %1 /u" >>tmp.txt
echo >>tmp.txt
echo @="regsvr32 %1 /u" >>tmp.txt
rename tmp.txt tmp.reg
start /wait regedit /s tmp.reg
del /q tmp.reg
exit
这是在右键上添加"注册.注销控件"的批处理
为什么执行后
本应是"regsvr32 %1 /u"的值
在注册表查看
变成"regsvr32 /u" 而少了%1.
这是为什么?
请大虾给出正确写法
[ Last edited by eech on 2007-3-13 at 12:02 PM ]
