──────────────── Moderation Record ────────────────
Performed by: namejm
Original title: txt text content processing problem
Modified title: How to overwrite the content of a specified paragraph in a text with other text content
Description: Because the original title was too vague, it was not convenient for forum search and management. Three days after this notice was posted,
the original poster had not changed the title, so I forcibly changed the title and deducted 2 points from the original poster.
──────────────── Moderation Record ────────────────
There are two files, a.txt and b.txt (the content is purely fictional, but it is enough to express my meaning):
The content of a.txt is as follows:
:
monday
:
yang li
wang yu
shan liang
:
meeting
study
The content of b.txt is as follows:
zhou zhuo
tian li
shang xiao nan
sun chao
Can a bat be used to achieve the following function:
Each time first delete all the names after : in a.txt, and then add the name content in b.txt to it, so that it becomes as follows:
a.txt:
:
monday
:
zhou zhuo
tian li
shang xiao nan
sun chao
:
meeting
study
The content in b may always change in the future, I just want to execute the bat, and import them all after name in a.txt.
If the bat cannot achieve this operation, can you tell me how to write it in vbs?
In addition, there is another question, how to start and execute a vbs in a batch file?
Looking forward to everyone's answers, thanks in advance!!!!!!!!!!!!!!!!!!!!!
[ Last edited by namejm on 2007-1-25 at 01:00 PM ]
Recent Ratings for This Post
( 1 in total)
Click for details
| Rater | Score | Time |
|---|---|---|
| namejm | -2 | 2007-01-26 01:59 |
