I want to find all the string (within the double quote) from all the .cs class files except from the comments (double slash). This is what i have came up so far, and it doesn't ignore the comments line, and it doesn't just return the string itself (content within the double quote). Can someone please help me improve this Powershell script? Thank you. I am running Win7
gci -path C:\Working\MyFolder -Include *.cs -Exclude *Designer.cs, *AssemblyInfo.cs -Recurse |
select-string -pattern '\"[^\"]*\"' | export-csv oput.csv