Script to Identify the DOTNET FRAMEWORK VERSION : I need to know that how can I find which Dotnet Framework version is installed through SCRIPT.
I found one website as below.
[WEBSITE FOR DOTNET SCRIPT][1]


  [1]: https://stackoverflow.com/questions/199080/how-do-i-detect-what-net-framework-versions-and-service-packs-are-installed

I found some code there to identify the DONET VERSION.
BUT IT IS NOT WORKING. OR I DO NOT KNOW HOW TO RUN IT ?

Can you please help me to develop any script which can be run on CMD and collect DOTNET FRAMEWORK VERSION.

Thanks
Adeel Imtiaz