I have the following different files under C:logs3
log1.txt
log2.txt
log3.txt
how to create with VB script , relevant code that create one file called:
log.general.txt
this VB script need to read all files content under log3 directory that have the name - log
as: log1.txt log2.test.txt log3.start.txt mylog.txt big.log.txt
But: not read the files as: test.txt or ABBA.txt or CAR.txt
And copy the content of those files in to one file - log.general.txt - "also under log3 dir"
* remark in case the file is empty then need to escape (continue to the next files)
for example
log1.txt:
111111
222222
log2.txt:
333333
444444
log3.txt
555555
666666
file.test.txt
777777
888888
log.general.txt content: -> (Expected results from the VB script)
111111
222222
333333
444444
555555
666666
other example from linux: (to in order to explain my question)
cat log1.txt >> log.general.txt
cat log2.txt >> log.general.txt
cat log3.txt >> log.general.txt
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…