哈哈···测试过也的确没问题···用的还是同一条命令···怎么那天就这个样子···
汗--||
可能是机子问题吧···
顺便贴一个自己弄的精简批处理文件的小程序,只有3行,不要笑我哦··
(功能:删除注解,删除空行和每行开头的空格)
@echo off
if %1.==. (set /p file=input:) else (set file=%1)
for /f "delims=" %%i in ("%file%") do (set file="%%~i"&set file0=%%~dpi&set file1=%%~nxi)
for /f "tokens=*" %%a in ('findstr /v "REM ::" %file%') do echo %%a>>"%file0%Deal_%file1%"
Hehe... I tested it and it really works... I used the same command... Why was it like that that day...
Sweat --||
Maybe it's a problem with the machine...
By the way, post a small program of the streamlined batch file I made. It has only 3 lines. Don't laugh at me oh...
(Function: Delete comments, delete blank lines and spaces at the beginning of each line)
@echo off
if %1.==. (set /p file=input:) else (set file=%1)
for /f "delims=" %%i in ("%file%") do (set file="%%~i"&set file0=%%~dpi&set file1=%%~nxi)
for /f "tokens=*" %%a in ('findstr /v "REM ::" %file%') do echo %%a>>"%file0%Deal_%file1%"