Skip to content

$cs.File\_AppendToFile

$cs.File_AppendToFile(string file, string text)

Appends text to a file if the file exists.

file

File to append text to

text

Text to append to file

Terminal window
$cs.File_AppendToFile("$env:windir\System32\Drivers\etc\hosts","127.0.0.1 assets.cloud.barco.com")

returns nothing