China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-12 00:51
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Help] How to delete blank lines in Word documents with batch processing? View 2,273 Replies 10
Original Poster Posted 2006-09-10 05:35 ·  中国 广东 东莞 电信
初级用户
Credits 63
Posts 18
Joined 2006-09-09 08:41
19-year member
UID 62219
Status Offline
[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
Floor 2 Posted 2006-09-10 05:53 ·  中国 四川 成都 教育网
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
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.

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>"
Floor 3 Posted 2006-09-10 06:17 ·  中国 广东 佛山 广东睿江科技有限公司
荣誉版主
★★★★
batch fan
Credits 5,226
Posts 1,737
Joined 2006-03-10 00:38
20-year member
UID 51697
From 成都
Status Offline
electronixtar's method is very good, a classic trick in Word.
尺有所短,寸有所长,学好CMD没商量。
考虑问题复杂化,解决问题简洁化。
Floor 4 Posted 2006-09-10 06:37 ·  中国 浙江 台州 电信
管理员
★★★★
DOS非常爱好者
Credits 6,215
Posts 2,601
Joined 2006-01-20 13:00
20-year member
UID 49256
Status Offline
This problem has been bothering me all the time, and I finally found the answer!
Floor 5 Posted 2006-09-10 06:48 ·  中国 广东 东莞 电信
初级用户
Credits 63
Posts 18
Joined 2006-09-09 08:41
19-year member
UID 62219
Status Offline
Got it, heh heh, thanks
Floor 6 Posted 2006-09-10 09:18 ·  中国 四川 成都 教育网
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
Actually, Word supports regular RegExp, and the nickname is: wildcards

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>"
Floor 7 Posted 2006-09-13 05:18 ·  中国 广东 汕头 电信
初级用户
Credits 135
Posts 49
Joined 2006-04-28 10:01
20-year member
UID 54589
Status Offline
In WORD, replacing ^P^P with ^P will be fine
Floor 8 Posted 2006-10-19 02:19 ·  中国 浙江 杭州 电信
中级用户
★★
Credits 305
Posts 85
Joined 2005-05-23 00:00
21-year member
UID 39004
Gender Male
Status Offline
But what about other places, such as text files? It's still more convenient to use batch processing, right? Can you write one?
Floor 9 Posted 2006-10-19 04:51 ·  中国 北京 联通
银牌会员
★★★
努力做坏人
Credits 1,185
Posts 438
Joined 2006-08-28 12:00
19-year member
UID 61449
From 北京
Status Offline
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.........
我今后在论坛的目标就是做个超级坏人!!!
Floor 10 Posted 2006-10-19 06:19 ·  中国 湖南 娄底 新化县 电信
银牌会员
★★★
Credits 1,218
Posts 485
Joined 2006-07-21 21:24
20-year member
UID 58987
From 湖南.娄底
Status Offline
Because of different encodings, it is impossible to process files in Word document format with batch processing.
Floor 11 Posted 2010-08-08 13:03 ·  中国 江苏 苏州 电信
新手上路
Credits 13
Posts 7
Joined 2010-06-30 20:48
16-year member
UID 169746
Gender Male
Status Offline
Forum Jump: