Equivalent of ‘pwd’ in MS-DOS
What is the equivalent of Unix’ pwd
in MS-DOS, to be used in a .BAT
script?
Let’s use %CD%
.
eg:
[java]C:\cd "C:\Documents and Settings"
C:\Documents and Settings>set FOO=%CD%
C:\Documents and Settings>>echo Hello my folder: %FOO%
Hello my folder: C:\Documents and Settings\[/java]