![]() |
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-24 04:43 |
47,812 topics / 349,917 posts / today 0 new / 48,274 members |
| DOS学习入门 & 精彩文章 (教学室) » The Strongest DOS Command – for (It is a good resource for novices to learn the FOR statement) |
| Printable Version 58,136 / 259 |
| Floor16 yangzhiyi | Posted 2006-11-05 01:56 |
| 中级用户 Posts 123 Credits 261 | |
| Floor17 yqadsq1314 | Posted 2006-11-06 16:05 |
| 初级用户 Posts 26 Credits 30 | |
|
Great, learned something.
|
|
| Floor18 zw4123 | Posted 2006-11-07 02:37 |
| 初级用户 Posts 16 Credits 34 | |
|
The for /f "tokens=1" %i in ("C:\1.txt") do (echo 成功) works when entered directly in DOS, but doesn't work when made into a batch file. It says "There should not be \h.txt here") do (echo 成功)." What to do about it? Who can help me solve this problem~~
|
|
| Floor19 不得不爱 | Posted 2006-11-07 05:33 |
| 超级版主 Posts 2,044 Credits 5,310 From 四川南充 | |
|
In batch processing, it should be: for /f "tokens=1" %%i in ("C:\1.txt") do (echo Success)
|
|
| Floor20 lxmxn | Posted 2006-11-07 10:40 |
| 版主 Posts 4,938 Credits 11,386 | |
|
In batch processing, parameters should be escaped with the % sign. For example, %i at the command line should be written as %%i in a batch script, and %a should be written as %%a.
|
|
| Floor21 freedossky | Posted 2006-11-08 07:26 |
| 初级用户 Posts 27 Credits 59 | |
| Floor22 nomads678 | Posted 2006-11-09 23:06 |
| 新手上路 Posts 5 Credits 12 | |
| Floor23 xiaolou | Posted 2006-11-12 22:17 |
| 新手上路 Posts 5 Credits 10 | |
|
I'm a newbie. Let's learn. Thanks.
|
|
| Floor24 wtp791211 | Posted 2006-11-13 05:41 |
| 初级用户 Posts 20 Credits 34 | |
|
Thanks
|
|
| Floor25 dos9527 | Posted 2006-11-16 00:10 |
| 中级用户 Posts 56 Credits 252 | |
|
The thing I've been wanting to find all the time
|
|
| Floor26 again123 | Posted 2006-11-16 12:00 |
| 新手上路 Posts 2 Credits 4 | |
|
Support!!! The FOR statement is really powerful
|
|
| Floor27 hxuan999 | Posted 2006-11-17 06:35 |
| 中级用户 Posts 161 Credits 337 | |
|
That's really good, I'll take it. Is there a more advanced method, heh.
|
|
| Floor28 littlekang | Posted 2006-11-18 05:48 |
| 新手上路 Posts 2 Credits 4 | |
|
First time to know the function of for. Oh my!
|
|
| Floor29 computom | Posted 2006-11-18 08:18 |
| 新手上路 Posts 2 Credits 4 | |
| Floor30 computom | Posted 2006-11-18 08:18 |
| 新手上路 Posts 2 Credits 4 | |
|
Are there any other good things?
|
|
| Prev 1 2 3 4 5 … 18 Next |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |