Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Batch file String question

Featured Replies

How do you find a string in a file and then after that string insert a certain text on the next line.


can you give an example of where you are pulling data from, and what kind of output you desire?

You can do this with a VBScript easily.

With a FileSystemObject you can add lines in ASCII or Unicode text file.

1) Open the file you want to edit

2) Create a temp file

3) Read you source file line by line

4) Add those lines in your temp file

5) When your text is found - InStr(FileLine,Text) - add the extra lines you want

6) When source file is all red then close it and delete it

7) Rename temp file as source file and that's it

I can provide you sample code but if you're not familiar with VBScript, I don't think it will help.

  • Author

I'm trying to add two lines automatically to dosnet.inf and txtsetup.sif. I'm trying to add it under [Files] and [source disk files]

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.