|
002500
初级用户
 
积分 63
发帖 18
注册 2006-9-9
状态 离线
|
『楼 主』:
[求助]批处理怎样删除word文档中的空行?
使用 LLM 解释/回答一下
[求助]批处理怎样删除word文档中的空行?
如里WORD文档里行与行之间隔了一行,想把空出的一行删掉,因为要打印,不然会浪费很多纸,想了半天也没搞出来 该怎么编写 ? 谢谢
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
|
|
2006-9-10 05:35 |
|
|
electronixtar
铂金会员
      
积分 7493
发帖 2672
注册 2005-9-2
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
为什么要用批处理呢?用word自带的替换,替换 ^p^p 为 ^p ,多按几次“全部替换”就搞定了。
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'>" |
|
2006-9-10 05:53 |
|
|
namejm
荣誉版主
       batch fan
积分 5226
发帖 1737
注册 2006-3-10 来自 成都
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
electronixtar的办法很好,word里的经典技巧啊。
electronixtar's method is very good, a classic trick in Word.
|

尺有所短,寸有所长,学好CMD没商量。
考虑问题复杂化,解决问题简洁化。 |
|
2006-9-10 06:17 |
|
|
雨露
管理员
          DOS非常爱好者
积分 6209
发帖 2598
注册 2006-1-20
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
这个问题一直困扰我,终于找到答案了!
This problem has been bothering me all the time, and I finally found the answer!
|

|
|
2006-9-10 06:37 |
|
|
002500
初级用户
 
积分 63
发帖 18
注册 2006-9-9
状态 离线
|
|
2006-9-10 06:48 |
|
|
electronixtar
铂金会员
      
积分 7493
发帖 2672
注册 2005-9-2
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
其实Word支持正则RegExp的,小名叫:通配符
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'>" |
|
2006-9-10 09:18 |
|
|
tmt2006
初级用户
 
积分 135
发帖 49
注册 2006-4-28
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
WORD 中将^P^P替换成^P就OK
In WORD, replacing ^P^P with ^P will be fine
|
|
2006-9-13 05:18 |
|
|
yardian
中级用户
  
积分 305
发帖 85
注册 2005-5-23
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
但是如果是其它地方呢,比如文本文件?还是用批处理方便吧?能不能写个呢?
But what about other places, such as text files? It's still more convenient to use batch processing, right? Can you write one?
|
|
2006-10-19 02:19 |
|
|
9527
银牌会员
     努力做坏人
积分 1185
发帖 438
注册 2006-8-28 来自 北京
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
文本文件是可以的,不过WORD文档就不这么简单了,楼主用electronixtar大侠的办法正好,呵呵.........
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.........
|

我今后在论坛的目标就是做个超级坏人!!! |
|
2006-10-19 04:51 |
|
|
pengfei
银牌会员
    
积分 1218
发帖 485
注册 2006-7-21 来自 湖南.娄底
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
因为编码不同, 用批处理处理word文档格式的文件是做不到的.
Because of different encodings, it is impossible to process files in Word document format with batch processing.
|
|
2006-10-19 06:19 |
|
|
dingcool
新手上路

积分 13
发帖 7
注册 2010-6-30
状态 离线
|
|
2010-8-8 13:03 |
|