Forum Home
Press F1
 
Thread ID: 112515 2010-09-09 07:59:00 Braindead ... Need DOS help SP8's (9836) Press F1
Post ID Timestamp Content User
1135808 2010-09-09 08:43:00 Terry .... /E for extension

Thanks very much everyone ...... just pressed the reset switch on the back of the head and it all started flooding back
SP8's (9836)
1135809 2010-09-09 09:52:00 What worked for me was CMD
CD \
Which put me at the root of C:

Then DIR *.JPG /S /P

Or you can omit the /P and use instead.

DIR *.JPG /S | C:\FileListJPG.TXT

This will give you a text file with the list of jpgs at the root of C:
The vertical character between the /S and C:\ above is called a pipe and is a shifted \ .

This in Win7 64 Pro.
Snorkbox (15764)
1135810 2010-09-09 10:12:00 Yeep. Forget that last bit as the pipe command is NOT in Win7. Snorkbox (15764)
1135811 2010-09-09 10:52:00 Maybe this'll help
www.computerhope.com
feersumendjinn (64)
1135812 2010-09-09 10:54:00 Another Edition that does work instead of the PIPE above.

CMD run as admin.
CD\

DIR *.JPG /S > C:\FileListJPG.txt

You get a list of all JPG files on C: in all subdirectories which will be in the root of C:\

You could send the text file to any other valid drive of course.
Snorkbox (15764)
1135813 2010-09-09 11:28:00 Also if using W7 run the CMD as administrator, other wise it can throw a big hissy fit and wont run the command ( just tried it) wainuitech (129)
1135814 2010-09-09 11:53:00 Agreed run as Admin as mentioned!!

You can also the above to get a filelist of all files on a drive by using CMD

CD\

D:\

DIR *.* /S > D:\AllFiles.txt

for example.
Snorkbox (15764)
1135815 2010-09-09 19:54:00 One final tweak, in case the .jpg and .jpeg files are an issue, is the use of the ? wildcard, so you could now use:

dir *.jp? /s

and get a list including all jpg and jpeg files, plus potentially a bit of other stuff as well using an extension starting with jp
Paul.Cov (425)
1135816 2010-09-09 22:17:00 Thanks for all your help guys. It's going to be a weekend job for a mate .... if he cuts my lawns, does the edges and takes a load of rubbish away ... SP8's (9836)
1135817 2010-09-10 12:47:00 dir *.jp? /s
The ? will bring up everything with .jp and one more character so will not bring up any .jpeg files. You have to use the * character to do that.
mikebartnz (21)
1 2 3