Batch file equivalent of CURRENTDIR="$PWD"?

batch-file, shell

Solution

The simplest form:

SET CURRENTDIR="%cd%"

Problem

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!

Original source