Windows Batch script snippets

How to write Framework .NET version to a TXT file

You just have to copy the following code and past into Notepad, then save with .cmd extension and execute it.

reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP" > Framework_version.txt
reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full" >> Framework_version.txt

Back to Windows Batch script cookbook page