Here's another use of the FOR statement. Please help me figure out how to get the exact result.
My batch file test1.cmd is as follows
The result is:
The result I want:
quya.txt
c:\x.txt (of course C could also be D)
d:\test\y
How should I do it? Thanks!
My batch file test1.cmd is as follows
@echo off
rem hhgjg>quya.txt
rem sssss>>%systemroot%\x.txt
rem dddd>>d:\test\y
for /f "tokens=2 delims=>" %%i in (test1.cmd) do echo %%i
pauseThe result is:
quya.txt
%systemroot%\x.txt
d:\test\y
" %%i in (复件test1.cmd) do echo %%iThe result I want:
quya.txt
c:\x.txt (of course C could also be D)
d:\test\y
How should I do it? Thanks!
我怎么找不到一个比我注册日期早的人? 难道我是传说中的超级管理员? 其实我只是个潜水冠军而已.

