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

来源:互联网 发布:服务器端口是什么 编辑:程序博客网 时间:2024/06/05 21:06

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

来自:

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%
system32cmd /k

不错!!