批处理程序学习

来源:互联网 发布:matlab 定义矩阵函数 编辑:程序博客网 时间:2024/06/06 07:18

新建一个批处理程序

net stop winmgmt
c:
cd %systemroot%\system32\wbem
rd /S /Q repository
regsvr32 /s %systemroot%\system32\scecli.dll
regsvr32 /s %systemroot%\system32\userenv.dll
mofcomp cimwin32.mof
mofcomp cimwin32.mfl
mofcomp rsop.mof
mofcomp rsop.mfl
for /f %%s in (‘dir /b /s *.dll’) do regsvr32 /s %%s
for /f %%s in (’dir /b *.mof‘) do mofcomp %%s
for /f %%s in (‘dir /b *.mfl’) do mofcomp %%s
原创粉丝点击