0

I would like to search for a file on my windows C drive for a specific file, file.pdf using command prompt, How can I do that?

lmanyange
  • 178
  • 2
  • 4
  • 15
  • Possible duplicate of [How do I open "Find Files" dialog from command-line in Windows XP to search a specific folder?](http://stackoverflow.com/questions/95432/how-do-i-open-find-files-dialog-from-command-line-in-windows-xp-to-search-a-sp) – jhoepken Mar 22 '16 at 07:00

1 Answers1

2

First, go to the drive you want to search. E.g if you are already in C type cd /.. to go to the root directory or otherwise type cd <directory name> (e.g cd D:)

Type dir /s file.pdf to search for that specific file.

Windows will list all the files with that name giving the path to it.

alex3683
  • 1,460
  • 14
  • 25
lmanyange
  • 178
  • 2
  • 4
  • 15