0

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.

2 Answers 2

1

try this on the command line:

dir /s d:\karthick\a.txt
0

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
1
  • or dir /ad to list only directories. If you know the file name try dir /s a.txt
    – Stephan
    May 31, 2013 at 12:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy