WikiWirral Wirral's Biggest Online Forum
Forum Statistics
Forums65
Topics76,512
Posts1,034,183
Members14,907
Most Online121,890
Sep 24th, 2025
Who's Online Now
10 members (3 invisible), 10,373 guests, and 465 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
Charlie92, Monkeh, Caro11, Monroe, jonmac
14,907 Registered Users
New General Forums
Magnet fishing
by Dilly - 2nd Oct 2017 11:43am
New Wirral History
Information on Wallasey Central Conservative Club
by sugaray - 20th Sep 2025 10:07pm
Looking for lost streets
by CloverBee - 12th Sep 2025 2:20pm
what was this building in Claughton Road
by derekdwc - 1st Sep 2025 12:10pm
461 Collingwood, Black Horse Hill, West Kirby
by diggingdeeper - 3rd Mar 2009 9:30pm
Top Posters(30 Days)
bert1 5
Topic Replies
DIGITAL I D
by GaryFromWirral - 30th Sep 2025 12:59pm
Recommend a company to fit a new kitchen?
by Longnails - 29th Sep 2025 12:25pm
Are there any grants available for a new boiler?
by Longnails - 29th Sep 2025 12:19pm
What are they doing at four bridges?
by Excoriator - 29th Sep 2025 2:33am
Information on Wallasey Central Conservative Club
by sugaray - 20th Sep 2025 10:07pm
461 Collingwood, Black Horse Hill, West Kirby
by KevinFinity - 13th Sep 2025 10:05pm
Looking for lost streets
by CloverBee - 13th Sep 2025 4:49pm
Temporary relocation of Birkenhead Market
by diggingdeeper - 12th Sep 2025 12:12am
Tree surgeon recommendations
by CarterUSM - 4th Sep 2025 1:24pm
October
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 31
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,217
Forum Veteran
OP Online Content
Forum Veteran
Joined: Oct 2008
Posts: 5,217
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,217
Forum Veteran
OP Online Content
Forum Veteran
Joined: Oct 2008
Posts: 5,217
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
DIGITAL I D
by GaryFromWirral - 30th Sep 2025 12:59pm
Recommend a company to fit a new kitchen?
by Longnails - 29th Sep 2025 12:25pm
Information on Wallasey Central Conservative Club
by sugaray - 20th Sep 2025 10:07pm
Looking for lost streets
by CloverBee - 12th Sep 2025 2:20pm
Tree surgeon recommendations
by CarterUSM - 4th Sep 2025 1:24pm
For Sale & Free
Member Spotlight
KevinFinity
KevinFinity
Wirral
Posts: 2,367
Joined: April 2009
Today's Birthdays
There are no members with birthdays on this day.
New Wirral Info
Recommend a company to fit a new kitchen?
by Longnails - 29th Sep 2025 12:25pm
Are there any grants available for a new boiler?
by Longnails - 25th Aug 2025 9:34pm
What are they doing at four bridges?
by Excoriator - 25th Jul 2025 12:23pm
Temporary relocation of Birkenhead Market
by mikeeb - 29th May 2021 1:01pm
News : New Topics
DIGITAL I D
by GaryFromWirral - 30th Sep 2025 12:59pm
New Enthusiast Forums
Tree surgeon recommendations
by CarterUSM - 4th Sep 2025 1:24pm
Popular Topics(Views)
10,601,024 CW Chat room thread
5,815,619 WIKI WALK CHAT
4,578,778 Spotted!
Powered by UBB.threads™ PHP Forum Software 7.7.5