- @echo off&setlocal enabledelayedexpansion
- for /f "eol=; delims=" %%a in (sample.txt) do (
- set "x=%%a"&set b=!x:*//=!
- if defined b (call set var=%%x://!b!=%%) else set var=!x!
- if defined var echo !var!>>resolution.txt
- )
- pause
复制代码
[ 本帖最后由 Lumiere 于 2009-8-7 00:45 编辑 ] |