for /f %i in (tdev.txt) do symaccess -sid 01 list -type stor -dev %%i -v | for /F "delims=" %a in ('findstr /C:"Masking View Names"') do echo %i %a >>views.txt
I am trying to find Masking View Names via Windows Batch File. This is based on something I found in this discussion group but the variable returns (echos) it's own name out to file rather than the result of findstr as it should. Any thoughts?   for /f %I in nrMETA.txt do symaccess -sid 01 list -type stor -dev %I -v | set %m = (findstr "Masking View Names") | echo %i %m >> Views.txt  This returns a list as follows:   0B0C % m 0BF5 % m ...  I need %m to be returned as the result of findstr and not itself. Thanks all!  OR is there a better way to approach this in powershell or via Unisphere? 
Help with batch file for symcli syntax please