User Tools

Site Tools


public:checking_if_a_file_exists_with_powershell

Checking if a file exists with PowerShell

You can check the existence of a file with the Test-Path command:

Test-Path -Path C:/Path/To/File

The command will return a boolean.

public/checking_if_a_file_exists_with_powershell.txt · Last modified: by thomas

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki