Tag Archives: Ini

Replace a Setting in a text file (VBS)

Purpose: Replace a setting in a text file without sending the whole file (for example: INI-file).

You might have an application that includes a configuration file. This configuration file is deployed along with the application. As time passes, your users will have made their own changes through the application to this configuration file. When you need to update all of the configuration files yourself, you simply cannot replace the file. This would remove all the changes that your users have done. You will need to replace the single line in the file and leave everything else as it was.

Usage: cscript.exe IT_APP_VBS_ReplaceLineInATextFile.vbs (no parameters exist)
Configuration: You need to insert your own customization line.

Continue Reading