I am trying to write the output generated by a simple command "dir" to a file. Can you please help me do that?
Here is what I am doing --
this will run dir command on my D: drive now, I want to write this ouput (in short whatever is displayed on cmd) to file. How can I do that?