Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

search directory then set result as variable

$
0
0

Hello everyone,

I'm trying to write a script that will search the C:\ drive and locate winword.exe.  Once it finds it I am collecting the file path, I want to store the path as a variable and based on the file path I was thinking of using the switch statement to run "some command" 

Any help would be greatly appreciated.


Viewing all articles
Browse latest Browse all 6937

Trending Articles