ls "d:\" "yasuo500" -recurse -directory
This command finds the folder 'yasuo500' in d:\media\documents, I want to use 'cd' to get into that directory, but how? i tried this:
$path1 = ls "d:\" "yasuo500" -recurse -directory cd $path1
But it does not work, it says
cd : cannot find path 'c:\yasuo500' because it does not exist.
What am I doing wrong?
*Keep in mind I can just do
But... it's not efficient, what if the directory is LONG, i'd take me too much typing.