PowerTip: Use PowerShell to Verify Syntax of Path
Summary: Learn how to use Windows PowerShell to verify the syntax of a path. How can I use Windows PowerShell to verify that a path that accepts user input is using the correct syntax? Use the –IsValid parameter of the Test-Path cmdlet, for example: PS C:\> $a = "c:\myfolder\nonexistentfile.txt" PS...