CMD Commands need help

October 20, 2012 at 07:45:32
Specs: Windows 7
well i'm going to try to explain what the problem is

1. i need to find all files with the letter 'x' in it and only see the file name

i know you can choose like x*.* but then you only show the files that begins with 'x' ? what do you have to type if you want the files with x for example somewhere in the middle of the filename like abcxdfg ?

2. My second question is a bit similar but i need to find all the files with 'e' as the second letter and only show the filename, so i tried to do this:

dir cd c:\ /s /b ?e*.* but for some reason it shows every file even those with the second letter d or f or..

and my last question :p

3. i need to find all mp3 files on my C: disk and save it in a txt file in the folder program files.

is this correct ? dir cd c:\ /s *.mp3 c:\program files\empeedrie.txt

because i can't try it out cause i don't have acces. + how do I plot that file in cmd ? with the type command ? and how

Thanks for your time and trying to help me:)


See More: CMD Commands need help

Report •

#1
October 20, 2012 at 08:45:25
Oh, hey. Homework. Here's your hints.

1) If you don't want only files starting with 'x', don't start your mask with 'x'.

2) You are searching for files named "cd", everything in "c:\", and files matching the mask "?e*.*". I assume you want only one of those.

3) No.

because i can't try it out cause i don't have acces.
What, are you' using Linux or something?

how do I plot that file in cmd ? with the type command ? and how
What are you asking?

How To Ask Questions The Smart Way


Report •

#2
October 20, 2012 at 10:38:49
These helped me as well when I was first starting.
http://ss64.com/nt/dir.html
http://ss64.com/nt/syntax-redirecti...

:: mike


Report •
Related Solutions


Ask Question