![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-09-13 23:01 |
47,812 topics / 349,916 posts / today 0 new / 48,268 members |
| 论坛回收站 » Problems with parentheses in the for command |
| Printable Version 2,111 / 5 |
| Floor1 ge_xin_yu | Posted 2010-10-08 19:31 |
| 初级用户 Posts 21 Credits 154 | |
|
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! |
|
| Floor2 DOSroot | Posted 2010-10-08 23:48 |
| 管理员 Posts 198 Credits 389 | |
|
Are you in a DOS environment?
|
|
| Floor3 ge_xin_yu | Posted 2010-10-09 09:28 |
| 初级用户 Posts 21 Credits 154 | |
|
Yes, the batch file of XP
|
|
| Floor4 ge_xin_yu | Posted 2010-10-09 17:43 |
| 初级用户 Posts 21 Credits 154 | |
|
No one knows? ? ?
|
|
| Floor5 DOSroot | Posted 2010-10-10 01:53 |
| 管理员 Posts 198 Credits 389 | |
Originally posted by Climbing at 2004-11-25 00:00: http://www.cn-dos.net/forum/viewthread.php?tid=46409 |
|
| Floor6 photonjl | Posted 2010-10-10 16:39 |
| 新手上路 Posts 6 Credits 8 | |
|
Remember replying on the bathhome website............
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |