How to print the current directory in a Windows bat file (like pwd on Linux) 2023-02-09 1 min read 5 words Use the cd variable. Example: echo %cd% ← Previous Gitlab CI Variables and Environments — Bringing Your Pipeline to "Life" Next → Python WeChat bot