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

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 stackoverflow.com May 31 '13 at 16:30

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

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

D:

cd karthick

dir

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

D:\karthick\"subdirectory"\a.txt
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

try this on the command line:

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

Your Answer

 
discard

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