Versions Compared

Key

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

...

$cs.File_DelFile(string filepath, bool recursive = false)

Parameters

filepath

file to delete and starting path

recursive

delete file from subfolders, relative to filepath (default False)

Description

Checks if a file exists and deletes it. If recursive = $true, it checks the folder and subfolders for the filename and deletes the files if they exist.

Parameters

filepath

file to delete and starting path

recursive

delete file from subfolders, relative to filepath (default False)

Example

Code Block
languagepowershell
$cs.File_DelFile("C:\Program Files\CapaInstaller\dummy.exe",$True)

...