WikiWirral values you and your opinion.
Forum Statistics
Forums65
Topics76,528
Posts1,034,301
Members14,991
Most Online121,890
Sep 24th, 2025
Who's Online Now
4 members (2 invisible), 19,791 guests, and 740 robots.
Key: Admin, Global Mod, Mod
Top Posters
sunnyside 45,164
MattLFC 22,315
Mark 21,269
granny 17,811
_Ste_ 16,347
Newest Members
Wenchyb, Ciara, Sazzz, kira56, joshua
14,991 Registered Users
New General Forums
New Wirral History
Telephone Exchange Closures
by diggingdeeper - 27th Mar 2026 1:02pm
Top Posters(30 Days)
JunxinH 10
Topic Replies
Eastham people
by PaulKennedy - 26th Apr 2026 4:54pm
Witches Circle Bidston Hill
by Beaty59 - 22nd Apr 2026 4:14pm
Deva Mental Asylum, Chester
by kenmo52 - 8th Apr 2026 8:13am
Boxer Ollie Locke
by JunxinH - 6th Apr 2026 1:08am
Telephone Exchange Closures
by Excoriator - 4th Apr 2026 10:42pm
April
M T W T F S S
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30
Top Likes Received (30 Days)
Top Likes Received
bert1 29
Mark 4
casper 4
Previous Thread
Next Thread
Print Thread
Joined: Oct 2008
Posts: 5,220
Forum Veteran
OP Offline
Forum Veteran
Joined: Oct 2008
Posts: 5,220
When using xp if I go to start then search if I type in .jpeg it comes up with all the jpegs or whatever file extension I put in.
What I'd like would be a program that would do the same but would enable me to make an excel list of them.
Got loads of mobi,jpeg,txt and pdf to sort out in various folders.
Been at it for a couple of days trying to sort

Could someone put the run-cmd lineon here in simple terms where to put the folder and file type if that works
Thanks

Last edited by derekdwc; 22nd Feb 2013 3:49pm.
Google Ads
Joined: Jan 2009
Posts: 10
Newbeee
Offline
Newbeee
Joined: Jan 2009
Posts: 10
Choose Start/Programs/Accessories/notepad to load a version of notepad

In notepad type in the following line of text......

dir c:\*.jp* /s > c:\users\yourwindowsname\desktop\output.txt

In the above replace "yourwindowsname" with whatever your windows login name is.
then click File / Save and save the file on your desktop however you MUST call the file so that
it has .bat at the end e.g. call it myprogram.bat - do not call it myprogram.txt otherwise it will not work.
It is important that the filename ends .bat so that it knows it is a batch program

You can run this 'batch program - c:\myprogram.bat' by double clicking on it in windows explorer

You should then see a file called output.txt appear on your desktop when it has finished showing all .jpg or .jpeg files

You can use same code and replace *.jp* with *.txt for text files *.xls* for excel files, *.doc* for word files etc. or *.* file all files. The /s means look in all sub directories.

Joined: Jul 2012
Posts: 230
Addict
Offline
Addict
Joined: Jul 2012
Posts: 230
Try this free program to do it for you;

http://www.infonautics.ch/directorylistprint/


Joined: Mar 2012
Posts: 8
Beginner
Offline
Beginner
Joined: Mar 2012
Posts: 8
From the command prompt, use this:

DIR <StartDir> *.jpg,*.pdf,*.ext /b /s >files.csv

Where <StartDir> is the 'root' of where you want to start the search from (eg C:\ for start from C: drive root.

You can have more file types to search than those three, obviously! Just change/add what you want to search for.

The list of files will be written into the file 'files.csv'. This will be able to be opened directly in Excel.

There's plenty of other switches that DIR can use simply enter DIR /? to see them.

Joined: Nov 2003
Posts: 21,269
Likes: 4
Wiki Master
Offline
Wiki Master
Joined: Nov 2003
Posts: 21,269
Likes: 4
Derek if your stuck,I can help you Doing the above.
It's easy when you have been shown how.

Batch programs if not done correctly can do a lot of damage if you change the command. In this case DIR is the command.

If your on the wikiwalk on Sunday I can give you some pointers / help.

Joined: Oct 2008
Posts: 5,220
Forum Veteran
OP Offline
Forum Veteran
Joined: Oct 2008
Posts: 5,220
Originally Posted by Rambo
Try this free program to do it for you;

http://www.infonautics.ch/directorylistprint/


THANKS
Bought the pro version. Does what I wanted


Moderated by  Mark 

Link Copied to Clipboard
Random Wirral Images

Click to View Topic.
Newest Topics
Eastham people
by PaulKennedy - 26th Apr 2026 4:54pm
Telephone Exchange Closures
by diggingdeeper - 27th Mar 2026 1:02pm
Witches Circle Bidston Hill
by Beaty59 - 14th May 2025 7:43pm
Boxer Ollie Locke
by Sully - 12th Sep 2024 1:11pm
Deva Mental Asylum, Chester
by robbo_theman - 11th Oct 2008 11:06pm
For Sale & Free
Member Spotlight
Beaty59
Beaty59
Port Sunlight
Posts: 237
Joined: May 2009
Today's Birthdays
There are no members with birthdays on this day.
New Wirral Info
Eastham people
by PaulKennedy - 26th Apr 2026 4:54pm
News : New Topics
New Enthusiast Forums
Witches Circle Bidston Hill
by Beaty59 - 14th May 2025 7:43pm
Boxer Ollie Locke
by Sully - 12th Sep 2024 1:11pm
Deva Mental Asylum, Chester
by robbo_theman - 11th Oct 2008 11:06pm
Popular Topics(Views)
10,820,378 CW Chat room thread
5,958,686 WIKI WALK CHAT
4,677,379 Spotted!
Powered by UBB.threads™ PHP Forum Software 7.7.5