Batch file equivalent of CURRENTDIR=“$PWD”?

2019-03-23 23:57发布

问题:

I'm trying to translate a very simple (Unix) shell script into a "batch file". I have most of it down, except for the line

CURRENTDIR="$PWD"

How can I translate this to "batchese"?

Thanks!

回答1:

The simplest form:

SET CURRENTDIR="%cd%"