[Help] Command Prompt Windows 7

Sep 16, 2014 at 1:44pm
Sorry for writing an off-topic.

In a command prompt

How can I view all the root directories including their sub-directories, one at a time?




Sep 16, 2014 at 1:51pm
Have you tried the Windows tree command?
Sep 16, 2014 at 2:17pm
@LB

Thank you Sir.

I have another question.

If I'm going to find files starting with "s", i'll type:

c:\>dir s*.*

or

c:\>dir s*

I don't know what's the difference between *.* and *

What are their uses? When should I use them?
Sep 16, 2014 at 2:21pm
s*.* will find all files starting with s and containing a period.
s* will find all files starting with s.

There is an exception to this logic: if you use *.* alone, it is the same as * alone. Blame lazy people at Microsoft that used *.* everywhere and then wanted to include files with no period in their name (e.g. no extension).
Sep 16, 2014 at 2:32pm
Thank you again.

If I'm going to find all files with extension of TXT

Is this correct?

c:\>dir *.*.doc

Sep 16, 2014 at 2:37pm
*.*.doc will find all files which contain a period and additionally end with .doc

Example match: Hello.imma.doc

As far as I know, txt and doc are not the same three letters. So, no, it is not correct.
Sep 16, 2014 at 2:44pm
oops, sorry

I typed the wrong extension. It should be txt. Im too careless...

Thank you very much sir.
Topic archived. No new replies allowed.