Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Description

Searches file for specified text-string and replace it with a new string

 

Syntax

File_ReplaceInFile(sFile, sSearchString, sReplacementString, bOnlyFirstOccurence, bIgnoreCase) As Boolean

 

Parameters

sFile (String)

Source-file

sSearchString (String)

String to replace

sReplacementString (String)

New string

bOnlyFirstOccurence (Boolean)

Only first matching string will be replaced

bIgnoreCase (Boolean)

Ignore case

 

Example

VBScript
If bStatus Then bStatus = File_ReplaceInFile("C:\CapaInstaller.txt", "1999", "2000", False, True)

Scripting Guidelines

 

Related functions

File_AppendToFile File_FindInFile File_GetLineString File_InsertInFile

  • No labels