按照论坛上的教程,学到for /f 的时候:
用for /f来显示1.txt里面的所包括的文件列表
klot[D:\hktools\cmdtmp]\>type 1.txt
Volume in drive D has no label.
Volume Serial Number is 9CCC-3BB8
Directory of D:\hktools\cmdtmp
2006-09-12 15:09 <DIR> .
2006-09-12 15:09 <DIR> ..
2006-09-12 15:18 0 1.txt
2006-09-12 15:09 5 a.txt
2006-09-12 13:48 6,860 mtee.rar
3 File(s) 6,865 bytes
2 Dir(s) 2,930,868,224 bytes free
klot[D:\hktools\cmdtmp]\>for /f "skip=7 tokens=4" in (1.txt) do @if exist a% echo a%
in was unexpected at this time.
klot[D:\hktools\cmdtmp]\>
咋出来个“in was unexpected at this time.”??
请指点下。(我已经切换到437英语状态下了)
用for /f来显示1.txt里面的所包括的文件列表
klot[D:\hktools\cmdtmp]\>type 1.txt
Volume in drive D has no label.
Volume Serial Number is 9CCC-3BB8
Directory of D:\hktools\cmdtmp
2006-09-12 15:09 <DIR> .
2006-09-12 15:09 <DIR> ..
2006-09-12 15:18 0 1.txt
2006-09-12 15:09 5 a.txt
2006-09-12 13:48 6,860 mtee.rar
3 File(s) 6,865 bytes
2 Dir(s) 2,930,868,224 bytes free
klot[D:\hktools\cmdtmp]\>for /f "skip=7 tokens=4" in (1.txt) do @if exist a% echo a%
in was unexpected at this time.
klot[D:\hktools\cmdtmp]\>
咋出来个“in was unexpected at this time.”??
请指点下。(我已经切换到437英语状态下了)
