SyntaxFix
Write A Post
Hire A Developer
Questions
You can use the Test-Path cmd-let. So something like...
Test-Path
if(!(Test-Path [oldLocation]) -and !(Test-Path [newLocation])) { Write-Host "$file doesn't exist in both locations." }