frhxceceki 发表于 2016-5-21 10:09:34

删除windows系统默认共享的批处理

  电脑中的默认共享,用批处理删除
  来自:
  http://blog.csdn.net/freexploit/archive/2005/07/15/425844.aspx
@echooff
cls
titleShareDeletehttp://blog.csdn.net/freexploit
remsharedelete0.1bulidbyALLyeSNOinChinaGuangDongZhuHai
netshareipc$/delete>nul2>nul
ifexistshare.tmpdelshare.tmp
netshare>share.tmp
for/f%%iin(share.tmp)do@netshare%%i/delete>nul2>nul
echo所有默认共享已经成功删除!
echo.
echo注意:如果是XP和WIN2003操作系统,IPC$不可删除.
echo你可以输入netshare察看当前默认共享状态.
ifexistshare.tmpdelshare.tmp
echo.
echo请按任意键继续.
pause>nul
echo输入exit退出cmd控制界面
echo.
cd
%windir%system32cmd/k



不错!!
页: [1]
查看完整版本: 删除windows系统默认共享的批处理