Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Syntax

$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 then it checks the folder and subfolders for the filename and deletes the file if it exists.

Example

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

returns nothing

  • No labels