PowerTip: Using PowerShell to Determine if Path Is to File or Folder

Summary: Learn how to use Windows PowerShell to determine if a path is to a file or a folder. How can I use Windows PowerShell to determine if a path is to a file or a folder? Use the Get-Item cmdlet to get the object represented by the path. Then use the –Is operator to see if the &...