-1

I am using a remote windows server and I have access to only windows power shell. I need to find path of few directories. Is there any way to locate files/directories in windows power shell.

Thank You

Sangeeta
  • 589
  • 1
  • 7
  • 26
  • 1
    This is a pretty trivial question which could be easily answered by reading the documentation. Have you tried using [IO.Directory]::GetFiles("c:\") or even DIR? Or have I misunderstood the question? – Anthill Nov 07 '12 at 17:16
  • "Dir" is not working because then I have to go to each directory and type DIR command. If I am searching for Mysql should I write like [IO.MySql] =GetFiles("c:\"). If yes, its not working!! – Sangeeta Nov 07 '12 at 17:34

1 Answers1

0

I got the solution, the command is

C:\> get-childitem -recurse -include *directory-name*
Andrew T.
  • 4,701
  • 8
  • 43
  • 62
Sangeeta
  • 589
  • 1
  • 7
  • 26