caloggins
12/5/2012 - 12:36 AM

powershell do command on files

powershell do command on files

push-Location

get-ChildItem -Path $PWD -Recurse |
	where-Object {$_.name -eq '<<filenamehere>>'} |
	select-Object fullname |
	foreach-object {& $_.fullname <<command arguments>>}

pop-Location