利息复试计算器:重新【注册】电脑中的所有ocx和dll文件

来源:百度文库 编辑:中财网 时间:2024/05/04 20:01:25
开始-运行-输入cmd--回车,如果在命令提示符下输入下面的命令,就是重新【注册】你电脑中的所有ocx和dll文件。
for %1 in (%windir%\system32\*.ocx) do regsvr32 /s %1
注册全部的.ocx文件
for %1 in (%windir%\system32\*.dll) do regsvr32 /s %1
注册全部的.dll文件
 FOR命令:
for %i in (文件) do cmd
命令,此为for循环语句。
%1:为变量,一般情况下%i,当然也可以为任何字母%a、%b……都行;
%windir%\system32\*.dll:实际上就是c:\windows\system32\*.dll,执行时会用*.dll文件来替换%i,即cmd命令处变为regsvr32 /s *.dll;
*.dll:为dll文件,当然会是一个一个代替运行regsvr32 /s *.dll。