Windows shell command to get the full path to the current directory?

前端 未结 14 1704
一向
一向 2020-11-30 17:51

Is there a Windows command line command that I can use to get the full path to the current working directory?

Also, how can I store this path inside a variable used

14条回答
  •  独厮守ぢ
    2020-11-30 18:29

    In a Windows command prompt, chdir or cd will print the full path of the current working directory in the console.

    If we want to copy the path then we can use: cd | clip.

提交回复
热议问题