| 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 | ||
| 1135798 | 2010-09-09 07:59:00 | CAn someone tell me how to find all files with the same file extension from the DOS prompt ... eg All files with .jpg or .wav I knew it once .. in a time far... far away. got a couple of ** in it somewhere I think. :o |
SP8's (9836) | ||
| 1135799 | 2010-09-09 08:13:00 | dir *.jpg sub jpg for what ever file type you want it to display. |
Deimos (5715) | ||
| 1135800 | 2010-09-09 08:27:00 | Nope .... dir = Directory doesn't it ?? Tried it on a couple of file types and it comes up with file not found. | SP8's (9836) | ||
| 1135801 | 2010-09-09 08:31:00 | Maybe you need the full extension e.g it could actually read .jpg's as .jpeg. | icow (15313) | ||
| 1135802 | 2010-09-09 08:32:00 | You probably have to cd to the folder they're in | Speedy Gonzales (78) | ||
| 1135803 | 2010-09-09 08:32:00 | Nope .... dir = Directory doesn't it ?? Tried it on a couple of file types and it comes up with file not found. :confused: Works for me. Just type dir, it should give you a full list of all the files in the directory, CD is for changing directory. dir (space) *.(file extension) I don't know what version of DOS you are using but it should be the same since DOS 6, Works in Windows 7 BTW. |
Deimos (5715) | ||
| 1135804 | 2010-09-09 08:34:00 | Maybe you need the full extension e.g it could actually read .jpg's as .jpeg. No way, DOS doesn't look inside the file, it is purely dependent on what the file extension actually is. Speedy is probably on the right track, dir won't show files in a sub directory. |
Deimos (5715) | ||
| 1135805 | 2010-09-09 08:35:00 | icow .... nope .... it's in the syntax. I know there's two ** somewhere before you put the .jpg or .wav file extension .... just can't remember what the hell it is. It's in the brain somewhere, but can't even find it on google .... Am I really getting that old ??? |
SP8's (9836) | ||
| 1135806 | 2010-09-09 08:36:00 | The dir command really needs a /S switch so that the current directory and all sub directories are searched. You may need to add a /P switch to pause at each pageful. So, dir *.jpg /S /P for example Dir /? from the dos prompt will give you all the switches. |
Terry Porritt (14) | ||
| 1135807 | 2010-09-09 08:38:00 | Speedy .... want to search a partition for all files with the same file extension and unsure of the directory. I was sure there was a way to do it ... but might be wrong. | SP8's (9836) | ||
| 1 2 3 | |||||