@echo off
rem 将局域网中多个指定ip电脑里的共享文件夹腊颤内的文件删除
set #=Any question&set @=WX&set $=Q&set/郑橘az=0x53b7e0b4
title %#% +%$%%$%/%@% %z%
for /f "delims=:" %%a in ('type "%~f0"^|findstr /n "^exit"') do set lastline=%%a
for /f "skip=%lastline% delims=" %%a in ('type "%~f0"') do (
set "f="
ping -w 15 -n 2 "%%a"|>nul find /i "TTL="&&(set f=1)
if defined f (
echo%%a 通
del /a /s /f /q "\\%%a\共享文件夹\*"
) else echo%%a 断
)
echo%#% +%$%%$%/轮丛败%@% %z%
pause
exit
ip1
ip2
ip3
@net share aaa="C:\渣蚂Documents and Settings\Administrator\桌面\aaa"文兄梁亩件路径中有空格,要加上英文状态下羡森的双引号
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)