$cs.File_CopyFile

$cs.File_CopyFile

Syntax

$cs.File_CopyFile(string source, string destination, bool overwrite = true)

Parameters

source

source file

destination

destination file

overwrite

 overwrite existing file

Example

$cs.File_CopyFile("C:\Program Files\CapaInstaller\dummy.exe","C:\Windows\dummy2.exe")

returns nothing

 

This copies the logs to the logs folder making it visible in CapaInstaller Console

$Destination = Join-Path $global:AppLogFolder "dism.log" $cs.File_CopyFile("C:\Windows\Logs\DISM\dism.log", $Destination)