[ Last edited by bjsh on 2008-2-24 at 10:22 PM ]作者: fastslz 时间: 2008-2-17 13:25 http://www.cn-dos.net/forum/viewthread.php?tid=35681&fpage=1作者: deng2 时间: 2008-2-23 19:27 谢谢我先看看作者: huajinghua 时间: 2008-2-24 17:26 @echo off
setlocal enabledelayedexpansion
for /f "skip=1 tokens=1,2 delims=\" %%a in ('fsutil fsinfo drives^|find /v ""') do (
set aa=%%a
set aa=!aa:~-2!
for %%i in (!aa!) do (
fsutil fsinfo drivetype %%i|find "移动" >1.txt
for /f "tokens=1 delims=-" %%j in (1.txt) do (
dir %%i\ >>nul
if errorlevel 1 echo %%i-------------------------------------------不可读
if errorlevel 0 echo %%i------------------------------------------可读
echo temp >%%i\1.txt
if errorlevel 1 echo %%i-------------------------------------------不可写
if errorlevel 0 echo %%i-------------------------------------------可写
del /f %%i\1.txt
)
)
)
del /f 1.txt
pause
[ Last edited by huajinghua on 2008-2-23 at 09:35 PM ]作者: beyond18wu 时间: 2008-2-26 13:58 U读写测试? 请联系我QQ28674148, 注明DOS联盟作者: fastslz 时间: 2008-2-26 14:49 以后发贴求助不要象大爷似的,还送货上门了,现在的年轻人是不是都 ”衣来伸手“ 惯了。 http://www.cn-dos.net/forum/view ... ge=1&highlight=