Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Merge log files and move

Status
Not open for further replies.

Webnoob

Technical User
Dec 21, 2016
1
0
0
DK
I am a new to vb scripting and I need help.
I have a folder with some log files that I need to merge, the first 4 lines are always the same so the 4 line only need to be written the first time.
The source folder receives a new log file every day and a file is in the folder for 14 days. The files are to be merge in to a files in a shared folder and at the end of the month the destination files is to be renamed into [year]_[month]_Merged_Agentlogs.log

Can some on help me with that?
 
Sure. What have you tried and where are you stuck? If you need a starting point, look into the vbscript FileSystem Object, including methods such as OpenTextFile, ReadAll, Move, and Write.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top