User Tools

Site Tools


public:checking_if_a_file_exists_with_powershell

This is an old revision of the document!


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.1713358418.txt.gz · Last modified: by thomas

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki