问题 How can I properly escape a quote in a search string when using findstr.exe? Example: findstr /misc:"namespace=\"" *.cs > ns.txt This outputs to the console, instead of to the file I specified. I am doing this directly on the command line, not actually in a batch file, though that information might be useful too. 回答1: Please correct me if I'm wrong, but I think I've figured it out: findstr.exe /misc:^"namespace=\^"^" *.cs > ns.txt This seems to give the correct output, even if you have spaces