
CODE: [Copy to clipboard][ Last edited by HAT on 2008-8-7 at 11:52 PM ]@echo off
set SrcFile=C:\VD.TXT
set DstRow= D:\
set PriRow=""
for /f "tokens=1* delims=" %%a in ('findstr .* "%SrcFile%"') do (
if "%%a" neq "%DstRow%" (
set PriRow=%%a
) else if "%%a" equ "%DstRow%" (
goto :show
)
)
:show
set PriRow=%PriRow: =%
mountvol c:\vd\ %PriRow%
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |