我也来个:- @echo off
- setlocal enableDelayedExpansion
- set fd=%~dp0
- cd/d %fd%
- for /f "delims=" %%d in ('dir/s/ad/b update? 2^>nul')do (
- if exist %%~dpdupdate\ (
- set nd=%%d
- set nd=!nd:%fd%=!
- set nd=!nd:update=/!
- set nd=!nd:*/=!
- if "!nd!?"=="?" echo "%%~dpd"
- )
- )
- pause
复制代码
|