Take the 2-minute tour ×
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
add comment

migrated from stackoverflow.com May 31 '13 at 16:30

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

2 Answers

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
add comment

try this on the command line:

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

Your Answer

 
discard

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