在剪切板换行没弄明白,给别人些思路- @echo off&setlocal enabledelayedexpansion
- (for /f "delims=" %%i in (a.txt) do (set "a=%%i"
- echo !a:~0,5!-!a:~5,5!-!a:~10,5!-!a:~15,5!
- )
- )>>temp.txt
- for /f "delims=" %%i in (temp.txt) do set n=!n!%%i
- mshta vbscript:clipboarddata.setdata("text","%n%")(close)
- pause
- del temp.txt
复制代码
[ 本帖最后由 wc726842270 于 2011-2-24 15:01 编辑 ] |