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

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

来自:

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

@echo off
cls
titleShareDeletehttp:
// blog . csdn . net / freexploit
rem sharedelete0.1bulidbyALLyeSNOinChinaGuangDongZhuHai
net shareipc $ / delete > nul 2 > nul
if exist share . tmp del share . tmp
net share > share . tmp
for / f%%iin ( 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

不错!!

你可能感兴趣的:(.net,windows,XP,Blog,F#)