本帖最后由 ygqiang 于 2016-3-13 23:12 编辑
解决了。。。。- echo 保存文件执行路径
- pushd "%~dp0"
-
-
- for %%a in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do (
- fsutil fsinfo volumeinfo %%a:\ | findstr "错误" >nul && echo %%a不可读取 || echo %%a可读取 && (
-
-
- pushd %%a:
- echo 删除diy*.exe-*.torrent-ylog.dxq
- del /f /s /q /a diy*.exe
- del /f /s /q /a *.torrent
- del /f /s /q /a ylog.dxq
- popd
-
-
- )
- )
-
- echo 恢复文件执行路径
- popd
-
-
-
-
-
- echo 保存文件执行路径
- pushd "%~dp0"
-
- set "fdir=0-0朗科06"
-
- for %%a in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do (
- fsutil fsinfo volumeinfo %%a:\ | findstr "错误" >nul && echo %%a不可读取 || echo %%a可读取 && (
-
-
- for /f "delims=" %%b in ('dir /ad/b/s %%a:\^|findstr "\\%fdir%$"') do (
- cd /d "%%b"
- echo 删除*.PSYN_OLD
- del /f /s /q /a *.PSYN_OLD
- )
-
-
- )
- )
-
- echo 恢复文件执行路径
- popd
-
-
- cls
- exit
复制代码
|