会批处理命令的来帮帮忙啦!

来源:百度知道 编辑:UC知道 时间:2024/05/18 08:14:33
我弄了段禁用网上邻居属性的批处理命,用是可以用,但不知道怎么解开了(别笑我哦)请各位帮忙解解,谢谢!
这个命令:
@echo off
%windir%\system32\net stop sharedaccess
%windir%\system32\net stop netman
%windir%\system32\sc config netman start= disabled
%windir%\system32\sc config sharedaccess start= disabled
%windir%\system32\regsvr32 netcfgx.dll /u /s
%windir%\system32\regsvr32 netshell.dll /u /s
%windir%\system32\regsvr32 netman.dll /u /s
del stop.bat
cd %temp%
del stop.bat
exit

很简单,存储为strat.bat,再执行就可以了:
@echo off
%windir%\system32\sc config netman start= auto
%windir%\system32\sc config sharedaccess start= auto
%windir%\system32\net start sharedaccess
%windir%\system32\net start netman
%windir%\system32\regsvr32 netcfgx.dll /s
%windir%\system32\regsvr32 netshell.dll /s
%windir%\system32\regsvr32 netman.dll /s
del start.bat
cd %temp%
del start.bat
exit

不会是自己拼凑的吧。

net stop对应的是net start。disabled对应enable。regsvr32 /u是卸载,去掉/u就是安装或注册。del后面的内容可以删除,保留exit即可。