I\'m trying to process a list of files that may or may not be up to date and may or may not yet exist. In doing so, I need to resolve the full path of an item, even though
You can just set the -errorAction to "SilentlyContinue" and use Resolve-Path
5 > (Resolve-Path .\AllFilerData.xml -ea 0).Path C:\Users\Andy.Schneider\Documents\WindowsPowerShell\Scripts\AllFilerData.xml 6 > (Resolve-Path .\DoesNotExist -ea 0).Path 7 >