Versions Compared

Key

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

Syntax

$cs.File_ExistFile(string filepath)

Parameters

filepath

Path to file to check for

Example

Code Block
languagepowershell
if(!$cs.File_ExistFile("${env:ProgramFiles(x86)}\WinSCP\WinSCP.exe")){
  Exit-PSScript 2
}

returns Bool