INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Jobs from Indeed

Merge log files and move

Merge log files and move

(OP)
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?

RE: Merge log files and move

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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close