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

电脑中的默认共享,用批处理删除 

来自:

http://blog.csdn.net/freexploit/archive/2005/07/15/425844.aspx

 

@echo   off
cls
title ShareDelete http:
// blog . csdn . net / freexploit
rem  sharedelete 0.1 bulid by ALLyeSNO in China GuangDong ZhuHai
net  share ipc $   / delete > nul  2 > nul
if   exist  share . tmp  del  share . tmp
net  share > share . tmp
for   / f %%i in  ( share . tmp )   do  @ net  share %%i  / delete > nul  2 > nul
echo  所有默认共享已经成功删除!
echo .
echo  注意:如果是 XP 和 WIN  2003  操作系统,IPC $  不可删除 .
echo        你可以输入  net  share 察看当前默认共享状态 .
if   exist  share . tmp  del  share . tmp
echo .
echo  请按任意键继续 .
pause > nul
echo  输入  exit  退出cmd控制界面
echo .
cd
%windir%
system32 cmd   / k

不错!!
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值