# Windows file listing in text format?

**URL:** <https://boards.straightdope.com/t/windows-file-listing-in-text-format/92982>\
**Category:** Factual Questions\
**Created:** [November 12, 2001, 10:01pm UTC](https://boards.straightdope.com/t/windows-file-listing-in-text-format/92982 "2001-11-12T22:01:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oblong](https://avatars.discourse-cdn.com/v4/letter/o/c0e974/32.png) [@Oblong](https://boards.straightdope.com/u/Oblong)\
**Post date:** [November 12, 2001, 10:01pm UTC](https://boards.straightdope.com/t/windows-file-listing-in-text-format/92982/1 "2001-11-12T22:01:52Z")

</div>

Anyone know of a way to get a file listing in Windows 98? It’s something I want to talk someone through over the phone that isn’t that computer literate.

I’d like to get a text file that will lists all the contents of C:(Directory) along with file size and date modified.

Thanks

---

<div class="post-metadata">

**Author:** ![El\_Cheapo](https://avatars.discourse-cdn.com/v4/letter/e/8e7dd6/32.png) [@El\_Cheapo](https://boards.straightdope.com/u/El_Cheapo)\
**Post date:** [November 12, 2001, 10:03pm UTC](https://boards.straightdope.com/t/windows-file-listing-in-text-format/92982/2 "2001-11-12T22:03:32Z")

</div>

dir \> foo.txt

---

<div class="post-metadata">

**Author:** ![scotth](https://avatars.discourse-cdn.com/v4/letter/s/b9e5f3/32.png) [@scotth](https://boards.straightdope.com/u/scotth)\
**Post date:** [November 12, 2001, 10:15pm UTC](https://boards.straightdope.com/t/windows-file-listing-in-text-format/92982/3 "2001-11-12T22:15:01Z")

</div>

and if you need all subdirectories from where you are:

dir /s \>foo.txt

notice there is no space between \> and foo

---

<div class="post-metadata">

**Author:** ![handy](https://avatars.discourse-cdn.com/v4/letter/h/b5a626/32.png) [@handy](https://boards.straightdope.com/u/handy)\
**Post date:** [November 13, 2001, 12:19am UTC](https://boards.straightdope.com/t/windows-file-listing-in-text-format/92982/4 "2001-11-13T00:19:32Z")

</div>

You should get a Directory Printer program from [download.com](http://download.com)  
Easier than using a Dos printer code. Ought to be plenty of programs there.
