$cs.File_DeleteLineInFile
Syntax
$cs.File_DeleteLineInFile(string file, string text, bool onlyfirstmatch = true, bool ignorecase = true)
Parameters
file
File to remove text from
text
Text to remove
onlyfirstmatch
Only delete first occurrence of text
ignorecase
Ignore text case
Â
Example
$cs.File_DeleteLineInFile("$env:windir\System32\Drivers\etc\hosts","127.0.0.1 assets.cloud.barco.com")
returns nothing
Â