中国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-12 07:57
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS批处理 & 脚本技术(批处理室) » [Help] A question about deleting lines containing a string
Printable Version  900 / 3
Floor1 zhanglm Posted 2010-06-08 09:52
新手上路 Posts 6 Credits 12
How do I write something to delete the lines in a.est that contain the string 字符串=12 or the string 字符串=22, while keeping the contents of the other lines unchanged?
I just started learning batch processing, and there’s a lot I don’t understand. Thanks to any experts who can help!!
Floor2 Hanyeguxing Posted 2010-06-08 10:16
银牌会员 Posts 897 Credits 1,039 From 在地狱中仰望天堂
This requires a.est to be ANSI encoded:

[ Last edited by Hanyeguxing on 2010-6-8 at 10:18 ]
Floor3 zhanglm Posted 2010-06-08 11:59
新手上路 Posts 6 Credits 12
Thanks, but Unicode doesn’t work, garbled text appears. What should I do about this?
Floor4 HAT Posted 2010-06-08 13:17
版主 Posts 5,017 Credits 9,023
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023