Printing out file list from Windows Explorer

I have Microsoft XP Pro SP2. I’d like to print out a list of
all my MS Word files from the My Documents folder in
Windows Explorer. Rather than use software to do this,
I’d prefer using DOS language, if it’s not too hard. Can
anyone provide instructions for how and when to enter
which DOS commands needed to print out my file list?

dir *.doc >PRT

Hi,

I am assuming you are familiar enough to navigate to your Documents folder using the “CD” command. If not, then get the “Open command Windows Here” Powertoy from http://www.microsoft.com/windowsxp/downloads/powertoys/xppowertoys.mspx
If you own a printer that is connected via Parallel interface, the command
dir *.doc > LPT1:
should do the job.
If you are using an USB printer, I’d recommend to create a text file that can be loaded and printed from your favourite text editor:
dir *.doc > doclist.txt
Open doclist.txt in Notepad or another text editor and print then.

Have you tried this? :bigsmile:

Here’s a simple approach to getting a print-out out of a folder tree:

Copy & paste the following into notepad:

Tree %1 /f >"%userprofile%\desktop\FileList.txt"
notepad.exe “%userprofile%\desktop\FileList.txt”

Save this with the filename “Print Tree.bat” somewhere handy, e.g. on your desktop.

To print a directory tree, just drag & drop a folder on top of this icon and the directory tree with file listings will automatically appear in a new Notepad window. To show the font properly, in Notepad go into the Format menu -> Font… and select “Terminal” as the font.

[QUOTE=gregory battaglia;1902858]I have Microsoft XP Pro SP2. I’d like to print out a list of
all my MS Word files from the My Documents folder in
Windows Explorer. Rather than use software to do this,
I’d prefer using DOS language, if it’s not too hard. Can
anyone provide instructions for how and when to enter
which DOS commands needed to print out my file list?[/QUOTE]

Sèan’s approach is very cool. I think it’s enough, but here’s another one.

This batch file will find all Word files and shortcuts of every user on your pc.

@echo off
cls
c:
cd
cd "Documents and Settings"
dir .doc /s /w /b >doclist.txt
echo Alle done
pause

Save this thing on your desktop (as a .bat file!!) and make a shortcut on your desktop to the doclist.txt file, it’s on c:\Documents and Settings.

Hi,[QUOTE=Mr. Belvedere;2491241]
This batch file will find all Word files and shortcuts of every user on your pc.[/quote]Works only if the user has sufficient permissions (or is running NT in Win98 mode)

@echo off
cls
c:
cd\
cd "Documents and Settings"
dir *.doc* /s /w /b >doclist.txt
echo Alle done
pause


This may work on your own system, but not in general :wink:

replace this

c:
cd\
cd "Documents and Settings"

by

cd %userprofile%
cd ..

Omit the
cd … statement if you want to “scan” your own profiles folder only.

Michael

[QUOTE=mciahel;2491257]This may work on your own system, but not in general ;)[/quote] Usualy works in XP though. :slight_smile:

[QUOTE=Mr. Belvedere;2491381]Usualy works in XP though. :)[/QUOTE]Only with an english XP in default configuration :wink: