Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6009325
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:57:16+00:00 2026-05-23T01:57:16+00:00

I have a process I would like to automate, but I am not very

  • 0

I have a process I would like to automate, but I am not very good at Bat and/or vb script. I am hoping that someone here can give me a pointer or two.

Here is the manual process:

  1. Open the file
  2. Search for this text: refname=”Microsoft.VSTS.Build.IntegrationBuild”
  3. Go down 3 lines.
  4. Append this text below the current line:
  5. Save the file

If anyone has any suggestions on how to do this I would love to hear it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T01:57:17+00:00Added an answer on May 23, 2026 at 1:57 am

    This is pretty quick-and-dirty, but it does work and should get you started.

    Const ForReading = 1
    Const ForWriting = 2
    
    Set fso = CreateObject("Scripting.FileSystemObject")
    Set f = fso.OpenTextFile("C:\MyTestFile.txt", ForReading, False)
    
    findText = "rename=""Microsoft.VSTS.Build.IntegrationBuild"""
    Do
      line = f.ReadLine
      position = InStr(1, line, findText, vbTextCompare)
      output = output & line & vbCrLf
    Loop While position = 0    
    
    output = output & f.Readline & vbCrLf
    output = output & f.Readline & vbCrLf
    output = output & f.Readline & vbCrLf
    output = output & "YOUR TEXT HERE" & vbCrLf
    
    Do While f.AtEndOfStream <> True
      output = output & f.Readline & vbCrLf
    Loop
    
    f.Close
    
    Set f = fso.OpenTextFile("C:\MyOutputFile.txt", ForWriting, True)
    f.Write output
    f.close
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have not used phing before, but would like to use it to automate
I have a process intensive task that I would like to run in the
I have a command-line process I would like to automate and capture in C#.
I would like to have a manager process sharing graphs via shared memory, read-only
Normally if I'd like to have an Erlang process timeout I would use the
I have a set of .csv files that I want to process. It would
I would like to automate the process of setting index statistics in a Firebird
Hopefully someone can help, I have a challenging situation that I cannot not seem
I would like to automate the results creation process when I apply certain modeling
Imagine I have an existing process running under windows as a particular user. Would

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.