I run windows command in particular directory and I need to pass files and subdirectories in this directory with full path. How to retrieve full path of current directory? What is analog of bash $PWD?
$pwd
is indeed a valid command in PowerShell as well (if you're using PowerShell). $pwd
in PowerShell is basically an alias for Get-Location
- both of them will give you the full path of current directory.
In case you are using cmd, use cd
(just cd
without any parameters)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.