Search
Calendar
July 2020
S M T W T F S
« Sep    
 1234
567891011
12131415161718
19202122232425
262728293031  
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