中国DOS联盟论坛

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-08 00:25
48,041 topics / 350,128 posts / today 3 new / 48,253 members
DOS批处理 & 脚本技术(批处理室) » Managing what students upload to the FTP! But an error occurs!!
Printable Version  517 / 2
Floor1 zxzx5200 Posted 2008-03-05 12:09
新手上路 Posts 5 Credits 14
Floor2 HAT Posted 2008-03-05 14:43
版主 Posts 5,017 Credits 9,023
for /f "delims=%file%" %%a in (aa1.txt) do echo del /f /s %%a%file%>>b.txt

=====================

You shouldn't use the file extension as the delimiter characters

There is a passage like this in the help for the for command:
FOR /F "eol=; tokens=2,3* delims=, " %i in (myfile.txt) do @echo %i %j %k

would parse each line in myfile.txt, ignoring lines that begin with
a semicolon, passing the 2nd and 3rd token from each line to the for
body, with tokens delimited by commas and/or spaces. Notice the for
body statements reference %i to get the 2nd token, %j to get the
3rd token, and %k to get all remaining tokens after the 3rd. For
file names that contain spaces, you need to quote the filenames with
double quotes. In order to use double quotes in this manner, you also
need to use the usebackq option, otherwise the double quotes will be
interpreted as defining a literal string to parse.
Floor3 tt518 Posted 2008-04-01 21:38
初级用户 Posts 18 Credits 44
So how do I solve it?
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023