How to read file contents into a variable in a batch file?

This batch file releases a build from TEST to LIVE. I want to add a check constraint in this file that ensures there is an accomanying release document in a specific folder. “C:\Program Files\Windows Resource Kits\Tools\robocopy.exe” “\\testserver\testapp$” “\\liveserver\liveapp$” *.* /E /XA:H /PURGE /XO /XD “.svn” /NDL /NC /NS /NP del “\\liveserver\liveapp$\web.config” ren “\\liveserver\liveapp$\web.live.config” web.config So … Read more

What are the undocumented features and limitations of the Windows FINDSTR command?

The Windows FINDSTR command is horribly documented. There is very basic command line help available through FINDSTR /?, or HELP FINDSTR, but it is woefully inadequate. There is a wee bit more documentation online at https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/findstr. There are many FINDSTR features and limitations that are not even hinted at in the documentation. Nor could they … Read more