Reputation: 493
How to write current directory path to file(text file or bat file) using windows command line(cmd) ?
Upvotes: 0
Views: 2242
Reputation: 887365
The cd
command, without any arguments, will print the current directory.
You can pipe that to a file: cd > Filename
Upvotes: 1