Search
Calendar
November 2019
S M T W T F S
« Sep    
 12
3456789
10111213141516
17181920212223
24252627282930
Your widget title
Archives

PostHeaderIcon 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:

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\

Leave a Reply