[Help] Command Prompt Windows 7

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?




Have you tried the Windows tree command?
@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?
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).
Thank you again.

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

Is this correct?

c:\>dir *.*.doc

*.*.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.
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.