中国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 01:40
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS批处理 & 脚本技术(批处理室) » [Help] How to delete blank lines in Word documents with batch processing?
Printable Version  2,276 / 10
Floor1 002500 Posted 2006-09-10 05:35
初级用户 Posts 18 Credits 63
[Help] How to delete blank lines in Word documents with batch processing? If there is a blank line between lines in a Word document and you want to delete the empty line, because you need to print and otherwise a lot of paper will be wasted. I've been thinking about it for a long time and haven't figured it out. How to write it? Thanks
Floor2 electronixtar Posted 2006-09-10 05:53
铂金会员 Posts 2,672 Credits 7,493
Why use batch processing? Just use the replace function in Word. Replace ^p^p with ^p, and press "Replace All" several times to get it done.
Floor3 namejm Posted 2006-09-10 06:17
荣誉版主 Posts 1,737 Credits 5,226 From 成都
electronixtar's method is very good, a classic trick in Word.
Floor4 雨露 Posted 2006-09-10 06:37
管理员 Posts 2,601 Credits 6,215
This problem has been bothering me all the time, and I finally found the answer!
Floor5 002500 Posted 2006-09-10 06:48
初级用户 Posts 18 Credits 63
Got it, heh heh, thanks
Floor6 electronixtar Posted 2006-09-10 09:18
铂金会员 Posts 2,672 Credits 7,493
Actually, Word supports regular RegExp, and the nickname is: wildcards
Floor7 tmt2006 Posted 2006-09-13 05:18
初级用户 Posts 49 Credits 135
In WORD, replacing ^P^P with ^P will be fine
Floor8 yardian Posted 2006-10-19 02:19
中级用户 Posts 85 Credits 305
But what about other places, such as text files? It's still more convenient to use batch processing, right? Can you write one?
Floor9 9527 Posted 2006-10-19 04:51
银牌会员 Posts 438 Credits 1,185 From 北京
The text file is okay, but it's not that simple with WORD documents. The building owner using the method of大侠 electronixtar is just right, heh heh.........
Floor10 pengfei Posted 2006-10-19 06:19
银牌会员 Posts 485 Credits 1,218 From 湖南.娄底
Because of different encodings, it is impossible to process files in Word document format with batch processing.
Floor11 dingcool Posted 2010-08-08 13:03
新手上路 Posts 7 Credits 13
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023