The commands are as follows:
for %%a in (1,2) do (
echo a() >1.txt
echo b() >>1.txt
)
The expected result is:
a()
b()
But the running result is:
a(
b()
There is a missing parenthesis. It is checked that the for command takes the closing parenthesis after a as the mark for the end of the command. How to solve this situation? Please help take a look, thank you very much!
for %%a in (1,2) do (
echo a() >1.txt
echo b() >>1.txt
)
The expected result is:
a()
b()
But the running result is:
a(
b()
There is a missing parenthesis. It is checked that the for command takes the closing parenthesis after a as the mark for the end of the command. How to solve this situation? Please help take a look, thank you very much!
Recent Ratings for This Post
( 1 in total)
Click for details
| Rater | Score | Time |
|---|---|---|
| DOSroot | -6 | 2010-10-11 19:27 |

