5

I want to know how to create batch file for check .net framework 3.5 sp1 is installed or not in system.
Please Help.

Vyasdev Meledath
  • 8,926
  • 20
  • 48
  • 68
  • This is a duplicate! Please refer to: http://stackoverflow.com/questions/492967/is-there-a-dos-command-for-verifying-what-version-of-net-is-installed – demokritos Dec 02 '10 at 12:42
  • 1
    This is not a duplicate. The other question wants to know what version is installed not IF it is installed. – Seth Mar 05 '12 at 11:21

1 Answers1

5

You can check if the folder %systemroot%\Microsoft.NET\Framework\v3.5 exists.

In your batch file, it could looks like:

IF EXIST "%systemroot%\Microsoft.NET\Framework\v3.5" ECHO File exists!

And here is a list of other possibilites: http://www.walkernews.net/2008/05/16/how-to-check-net-framework-version-installed/

EvilMM
  • 901
  • 4
  • 9