I’m developing a product related to printing. To work it properly in all windows versions I need to include few exe (lpr.exe) files from system32 folder. So I need to know it is legal to distribute these exe file with my product.
2
Ignoring the legality, its a profoundly bad idea to install a version of a Windows system exe on other installations running different versions of Windows (both major and minor). You should look to see if MS has some sort of redistributable package for that program that you can include in your installer to enable the functionality you are looking for, or re-evaluate your current approach to whatever it is you are doing..
The answer is pretty much no.
Those files are Microsoft’s, and they have prohibited redistribution.
2