Syntax
<dllobject>$cs.File_ExistFile(string filepath)
Parameters
filepath
Path to file to check for
...
Code Block | ||
---|---|---|
| ||
if(!$cs.File_ExistFile("${env:ProgramFiles(x86)}\WinSCP\WinSCP.exe")){Exit-PSScript 2} |
returns nothingBool
<dllobject>$cs.File_ExistFile(string filepath)
filepath
Path to file to check for
...
Code Block | ||
---|---|---|
| ||
if(!$cs.File_ExistFile("${env:ProgramFiles(x86)}\WinSCP\WinSCP.exe")){Exit-PSScript 2} |
returns nothingBool