![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | test-path -IsValid ? Hi, I have been playing with Powershell and I like it very much. I have a question about the "IsValid" switch of the "test-path" cmdlet. test-path $PROFILE -IsValid According to the help-file it should help determine whether the syntax of a path is correct, but I wonder if it functions correctly. As far as I can see this switch ALWAYS results in a "true", regardless whether I provide the cmdlet with an actual path. PS> test-path "This is a test." -IsValid True Perhaps this is a bug? friendly regards, Raymond, Dutch PS user |
My System Specs![]() |
| | #2 (permalink) |
| | Re: test-path -IsValid ? Check this: Test-Path isValid parameter http://scriptolog.blogspot.com/2007/...haracters.html ----- Shay Levi $cript Fanatic http://scriptolog.blogspot.com Quote: > Hi, > > I have been playing with Powershell and I like it very much. I have a > question about the "IsValid" switch of the "test-path" cmdlet. > > test-path $PROFILE -IsValid > > According to the help-file it should help determine whether the syntax > of a path is correct, but I wonder if it functions correctly. As far > as I can see this switch ALWAYS results in a "true", regardless > whether I provide the cmdlet with an actual path. > PS>> Quote: > True > > Perhaps this is a bug? > > friendly regards, > > Raymond, > Dutch PS user |
My System Specs![]() |
| | #3 (permalink) |
| | Re: test-path -IsValid ? My bad. Thanks for listening! |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| test for executable on path | PowerShell | |||
| Test-Path '' -IsValid does not return False but fails. Is this OK? | PowerShell | |||
| Test-Path isValid parameter | PowerShell | |||
| how to test for a program in my path? | PowerShell | |||
| BUG? (Test-Path $path -IsValid) and empty $path | PowerShell | |||