联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!
@echo off for /f "tokens=*" %%\ in ('dir /b /tc /o-d /a C:\*.txt') do ( set NewFile=%%\ goto :next ) :next for /f "tokens=1,2* delims=:" %%a in ('findstr /n . "C:\%NewFile%"') do ( if "%%a" equ "2" ( set ScdLine=%%b goto :show ) ) :show mshta vbscript:createobject("wscript.shell").popup("%ScdLine%")(window.close) & exit
@echo off for /f "tokens=*" %%\ in ('dir /b /tc /o-d /a C:\*.txt') do ( set NewFile=%%\ goto :next ) :next for /f "skip=1 tokens=*" %%a in ('findstr . "C:\%NewFile%"') do ( set ScdLine=%%a goto :show ) :show mshta vbscript:createobject("wscript.shell").popup("%ScdLine%")(window.close) & exit
@echo off for /f "tokens=*" %%\ in ('dir /b /tc /o-d /a C:\*.txt') do ( set NewFile=%%\ goto :next ) :next for /f "skip=1 tokens=*" %%a in ('findstr . "C:\%NewFile%"') do ( set ScdLine=%%a goto :show ) :show mshta vbscript:createobject("wscript.shell").popup("%ScdLine:~1,-1%")(window.close) & exit