File_DeleteLineInFile
Description
Deletes line in specified file
Â
Syntax
File_DeleteLineInFile(sFile, sSearchString, bOnlyFirstOccurrence, bIgnoreCase) As Boolean
Â
Parameters
sFile (String)
Filename
sSearchString (String)
String to be searched for
bOnlyFirstOccurrence (Boolean)
Delete only first occurrence
bIgnoreCase (Boolean)
Ignore case
Example
VBScript
If bStatus Then bStatus = File_DeleteLineInFile("C:\CapaInstaller.txt", "CapaInstaller", True, True)
Â