电脑中的默认共享,用批处理删除
来自:
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
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