Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Syntax

$cs.File_DeleteLineInFile(string file, string text, bool onlyfirstmatch = true, bool ignorecase = true)

Parameters

file

File to remove text from

...

ignorecase

Ignore text case

Example

Code Block
languagepowershell
$cs.File_DeleteLineInFile("$env:windir\System32\Drivers\etc\hosts","127.0.0.1    assets.cloud.barco.com")

...