Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a file name a.txt. I know directory name is d:\karthick but i don't know the subdirectory name using cmd prompt.

Example: d:\karthick\sabari\a.txt

I dont know know sabari folder. Using cmd prompt i need to find.

share|improve this question

migrated from May 31 '13 at 16:30

This question came from our site for professional and enthusiast programmers.

2 Answers 2

try this on the command line:

dir /s d:\karthick\a.txt
share|improve this answer

type the folowing at command prompt, you should get a list with subdirectories and files in the directory(three commands):


cd karthick


to open the file with default viewer, then you can type:

share|improve this answer
or dir /ad to list only directories. If you know the file name try dir /s a.txt – Stephan May 31 '13 at 12:25

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.