Is there anything similar to the following in Windows that will let me know if .NET is installed from the command line?
$ java -version
$ ruby --version
$ python --version
What OS and command shell are you using?
With Windows from a batch file
if EXIST %WINDIR%\Microsoft.Net\Framework\v1.0.3705\mscorlib.dll
if EXIST %WINDIR%\Microsoft.Net\Framework\v1.1.4322\mscorlib.dll
if EXIST %WINDIR%\Microsoft.Net\Framework\v2.0.50727\mscorlib.dll
With Windows from PowerShell
if (test-path (join-path $env:windir "Microsoft.Net\Framework\v2.0.50727\mscorlib.dll"))){
You can use clrver command to check which .net frameworks are installed.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With