finding file in powershell
Posted on 2013-05-21
I'm pretty new to powershell,
How would i use powershell to find a file and get the path. And also is it possible to use the path in a variable?
for example. I want to search for a file on my computer called mytestfile.exe
and get the path of its location. And put that location into a variable.
I was trying to use get-childitme -recurse -include, but i'm not sure if i am using it correctly
I seem to be able to get the directory but how would i put the path into a variable