shan
shan

Reputation: 493

write to current working path to file using command line

How to write current directory path to file(text file or bat file) using windows command line(cmd) ?

Upvotes: 0

Views: 2242

Answers (1)

SLaks
SLaks

Reputation: 887365

The cd command, without any arguments, will print the current directory.

You can pipe that to a file: cd > Filename

Upvotes: 1

Related Questions