Board logo

标题: 如何对U盘进行读写测试 [打印本页]

作者: deng2     时间: 2008-2-17 12:39    标题: 如何对U盘进行读写测试


─────────────────── 版务记录 ────────────────────
执行:lxmxn
标题:请教这个批处理怎么写哦??
说明:因标题表述过于模糊,不便于论坛的搜索和管理,请在三日内修改标题,否则扣除2点积分
参考:http://www.cn-dos.net/forum/viewthread.php?tid=7326&fpage=1
   http://www.cn-dos.net/forum/viewthread.php?tid=1415
─────────────────── 版务记录 ────────────────────



在WINDOWSXP下,插入U盘(2-6个U盘),并且能对U盘进行读写测试,,,
且能将最后的结果反回,,,请教各位高手帮忙,,谢谢!!我的邮件地址:
kuideng@msic.com.cn...谢谢各位的帮忙...

[ 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=