If you are not interested in hidden or system files you can also use Test-Path
To see if it exists a file in directory .\temp you can use :
Test-Path -Path .\temp\*
or shortly :
Test-Path .\temp\*
If you are not interested in hidden or system files you can also use Test-Path
To see if it exists a file in directory .\temp you can use :
Test-Path -Path .\temp\*
or shortly :
Test-Path .\temp\*