dos command for finding a folder?


I know how to find files

dir *bla*.xls /s

How do I find a folder from dos?  Is there a way?
fcekAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

pjamCommented:
DOS or command prompt?
Directory should be same as file, do a DIR directroy name /s
This should help out:
http://en.wikipedia.org/wiki/List_of_DOS_commands
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
tjdabombCommented:
that command will bring up folders too.
0
oBdACommented:
Nearly the same way, just add "/a:d" to tell the dir cmd to list directories. Add "/s" to search subfolders as well:
dir /a:d *bla*
dir /a:d /s *bla*
0
Exploring SQL Server 2016: Fundamentals

Learn the fundamentals of Microsoft SQL Server, a relational database management system that stores and retrieves data when requested by other software applications.

btdownloads7Commented:
It will work the same way, but you have to use the wildcard, otherwise it will show you the contents of the folder, not search for it. You can also use the /ad switch to narrow your results to the folders only. For example, to search for a folder called "desktop", here's the command:

dir /ad /s desktop*
0
Gavincr001Commented:
You can use

Dir folder name.

If you end with a . It will only show folders, also use /s for subfolders
0
subhashchyCommented:
C:\Users\Subhash-Chandra>dir /?
Displays a list of files and subdirectories in a directory.

DIR [drive:][path][filename] [/A[[:]attributes]] /B] [/C] [/D] [/L] [/N]
  [/O[[:]sortorder]] [/P] [/Q] [/R] [/S] [/T[[:]timefield]] [/W] [/X] [/4]

  [drive:][path][filename]
              Specifies drive, directory, and/or files to list.

  /A          Displays files with specified attributes.
  attributes   D  Directories                R  Read-only files
               H  Hidden files               A  Files ready for archiving
               S  System files               I  Not content indexed files
               L  Reparse Points             -  Prefix meaning not

 /S          Displays files in specified directory and all subdirectories.

i would use

C:\Users\Subhash-Chandra>dir tes* /s /b /A:D

output = C:\Users\Subhash-Chandra\test

Open in new window

0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft DOS

From novice to tech pro — start learning today.