Discussion Locked

Printing from Windows Explorer

0 helpful
6 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
What is the command line used to print from Windows Explorer? I thought it was: dir c:\(the name I wanted to name the file) & then I just hit "enter" on the keyboard. I would then open MS Word & look in Drive "c" for the file I named it.

6 replies

by vinnyd

Your talking about doing a directory listing from the command prompt.

The command line you are looking for is:

dir c:\ > name_of_file

The > is a redirect of the standard output. It directs all output from the DIR command to go into the fileyou want.

Then you can open the file in Word.

A tip! Use name_of_file.DOC that is the default file listing for Word, it just makes the file easier to find.

Also the file will be in the default directory you run the command from unless you specify a full path for the file name.

by bunjee49

I am trying to print a list from a cd-r - all MP3's. The answer I received did not work. I am typing: dir c:\>mp3project.doc from my cd-rom drive & can't get it to work. I get "file creation error" or "bad command or file name.".....dir(space)c:\>mp3project.doc does not get me any results. What am I doing wrong?

by gijoe

From the directory with all the files, you should type:

dir *.* > c:\filename.txt

by gijoe

Answer above assumes you are talking about doing this at the dos prompt.

This discussion is closed to new replies.