![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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) |
| | How can I Write-Host the current directory? To diagnose where I am in a script that trundles up and down a directory structure, I want to Write-Host the current directory at various points. Is it possible to do this? |
My System Specs![]() |
| | #2 (permalink) |
| | Re: How can I Write-Host the current directory? Write-Host $pwd - or - Write-Host (Get-Location) --- Shay Levy Windows PowerShell MVP http://blogs.microsoft.co.il/blogs/ScriptFanatic s> To diagnose where I am in a script that trundles up and down a s> directory structure, I want to Write-Host the current directory at s> various points. Is it possible to do this? s> |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Difference in getting the current exe directory | .NET General | |||
| bug in join-path when the current directory is used | PowerShell | |||
| how do I keep powershells current directory and dotnets current directory in sync | PowerShell | |||
| Executing scripts in the current directory | PowerShell | |||
| Manipulating current directory as a variable | PowerShell | |||