本帖最后由 ArdentMan 于 2011-7-5 22:49 编辑
- @Echo Off&SetLocal EnableDelyaedExpansion
- (For /F %%I IN ('Type 1.txt^&Echo End') Do (
- Set "Str=%%I"
- If "!Var:~,1!" EQU "\" (
- Echo !Var!
- ) Else (
- If "!Str:~,1!" EQU "\" Echo !Var!
- )
- Set "Var=%%I"
- ))>2.txt
- Start 2.txt
复制代码
|