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

前端 未结 14 1746
一向
一向 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:41

    For Windows, cd by itself will show you the current working directory.

    For UNIX and workalike systems, pwd will perform the same task. You can also use the $PWD shell variable under some shells. I am not sure if Windows supports getting the current working directory via a shell variable or not.

提交回复
热议问题