![]() |
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-08-03 19:26 |
48,038 topics / 350,123 posts / today 0 new / 48,251 members |
| DOS批处理 & 脚本技术(批处理室) » What's wrong with this batch file |
| Printable Version 731 / 5 |
| Floor1 jasonwang | Posted 2007-03-17 00:02 |
| 初级用户 Posts 54 Credits 122 | |
|
for /f %%i in (c d e f g h i j k l m n o p q r s t u v w x y z) do (del %%i:\*.tmp /f/q/s)
pause It gives the following error: D:\test>for /F %i in (c d e f g h i j k l m n o p q r s t u v w x y z') do del % i:\*.tmp /f/q/s The system cannot find file c。 D:\test>pause Press any key to continue. . . [ Last edited by jasonwang on 2007-3-17 at 12:05 AM ] |
|
| Floor2 NaturalJ0 | Posted 2007-03-17 00:09 |
| 银牌会员 Posts 533 Credits 1,181 | |
|
/f is unnecessary
|
|
| Floor3 jasonwang | Posted 2007-03-17 00:26 |
| 初级用户 Posts 54 Credits 122 | |
|
That's not the cause of the error, right?
|
|
| Floor4 lxmxn | Posted 2007-03-17 01:11 |
| 版主 Posts 4,938 Credits 11,386 | |
|
The poster in reply #2 is correct. |
|
| Floor5 dglsy | Posted 2007-03-17 04:07 |
| 初级用户 Posts 20 Credits 39 | |
|
Take a look at how the f parameter is used
|
|
| Floor6 heicai | Posted 2007-03-17 04:25 |
| 中级用户 Posts 156 Credits 385 | |
|
What does the /F parameter mean??? Please explain it, I want to know too
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |