Hello How can I check what is the Windows version and if it is Windows XP, is SP2 of Windows XP installed? Regards Hamed
Hamed wrote: > Hello > > How can I check what is the Windows version and if it is Windows XP, is SP2 > of Windows XP installed? > > Regards > Hamed > > > Environment.OSVersion.ToString(); returned Microsoft Windows NT 5.1.2600 Service Pack 2 HTH Eddie
Thanks Eddie. but I use .NET Framework 1.1.4 Your solution is in .NET Framework 2.0 Is there any solution for the version that I use? "Eddie" <edob@home> wrote in message news:eillA1OgGHA.4940@TK2MSFTNGP05.phx.gbl... > Hamed wrote: >> Hello >> >> How can I check what is the Windows version and if it is Windows XP, is >> SP2 >> of Windows XP installed? >> >> Regards >> Hamed >> >> >> > Environment.OSVersion.ToString(); > > returned > > Microsoft Windows NT 5.1.2600 Service Pack 2 > > HTH > > Eddie
Environment.OSVersion is manage also by Framework 1.1 "Hamed" wrote: > Thanks Eddie. but I use .NET Framework 1.1.4 > > Your solution is in .NET Framework 2.0 > > Is there any solution for the version that I use? > > > "Eddie" <edob@home> wrote in message > news:eillA1OgGHA.4940@TK2MSFTNGP05.phx.gbl... > > Hamed wrote: > >> Hello > >> > >> How can I check what is the Windows version and if it is Windows XP, is > >> SP2 > >> of Windows XP installed? > >> > >> Regards > >> Hamed > >> > >> > >> > > Environment.OSVersion.ToString(); > > > > returned > > > > Microsoft Windows NT 5.1.2600 Service Pack 2 > > > > HTH > > > > Eddie > > >
Yes, but returnes "Microsoft Windows NT 5.1.2600.0" both SP1 and SP2 of XP "sebastieng" wrote in message news:9CAF14F0-36B9-492A-886C-1EB7A4AEC503@microsoft.com... > Environment.OSVersion is manage also by Framework 1.1 > > "Hamed" wrote: > >> Thanks Eddie. but I use .NET Framework 1.1.4 >> >> Your solution is in .NET Framework 2.0 >> >> Is there any solution for the version that I use? >> >> >> "Eddie" <edob@home> wrote in message >> news:eillA1OgGHA.4940@TK2MSFTNGP05.phx.gbl... >> > Hamed wrote: >> >> Hello >> >> >> >> How can I check what is the Windows version and if it is Windows XP, >> >> is >> >> SP2 >> >> of Windows XP installed? >> >> >> >> Regards >> >> Hamed >> >> >> >> >> >> >> > Environment.OSVersion.ToString(); >> > >> > returned >> > >> > Microsoft Windows NT 5.1.2600 Service Pack 2 >> > >> > HTH >> > >> > Eddie >> >> >>
K, sorry Might compare version of %system path%\winver.exe file. I have no system under SP1 under the hand to check if it's changing from one SP to another... "Hamed" wrote: > Yes, but returnes "Microsoft Windows NT 5.1.2600.0" both SP1 and SP2 of XP > > > "sebastieng" wrote in message > news:9CAF14F0-36B9-492A-886C-1EB7A4AEC503@microsoft.com... > > Environment.OSVersion is manage also by Framework 1.1 > > > > "Hamed" wrote: > > > >> Thanks Eddie. but I use .NET Framework 1.1.4 > >> > >> Your solution is in .NET Framework 2.0 > >> > >> Is there any solution for the version that I use? > >> > >> > >> "Eddie" <edob@home> wrote in message > >> news:eillA1OgGHA.4940@TK2MSFTNGP05.phx.gbl... > >> > Hamed wrote: > >> >> Hello > >> >> > >> >> How can I check what is the Windows version and if it is Windows XP, > >> >> is > >> >> SP2 > >> >> of Windows XP installed? > >> >> > >> >> Regards > >> >> Hamed > >> >> > >> >> > >> >> > >> > Environment.OSVersion.ToString(); > >> > > >> > returned > >> > > >> > Microsoft Windows NT 5.1.2600 Service Pack 2 > >> > > >> > HTH > >> > > >> > Eddie > >> > >> > >> > > >
This should do it: http://support.microsoft.com/default.aspx?scid=kb;EN-US;304721 Best Regards, Andrei Pociu http://www.geekpedia.com "sebastieng" wrote in message news:84D29ACB-888A-495B-88DA-BE428A80C4F1@microsoft.com... > K, sorry > > Might compare version of %system path%\winver.exe file. I have no system > under SP1 under the hand to check if it's changing from one SP to > another... > > "Hamed" wrote: > >> Yes, but returnes "Microsoft Windows NT 5.1.2600.0" both SP1 and SP2 of >> XP >> >> >> "sebastieng" wrote in message >> news:9CAF14F0-36B9-492A-886C-1EB7A4AEC503@microsoft.com... >> > Environment.OSVersion is manage also by Framework 1.1 >> > >> > "Hamed" wrote: >> > >> >> Thanks Eddie. but I use .NET Framework 1.1.4 >> >> >> >> Your solution is in .NET Framework 2.0 >> >> >> >> Is there any solution for the version that I use? >> >> >> >> >> >> "Eddie" <edob@home> wrote in message >> >> news:eillA1OgGHA.4940@TK2MSFTNGP05.phx.gbl... >> >> > Hamed wrote: >> >> >> Hello >> >> >> >> >> >> How can I check what is the Windows version and if it is Windows >> >> >> XP, >> >> >> is >> >> >> SP2 >> >> >> of Windows XP installed? >> >> >> >> >> >> Regards >> >> >> Hamed >> >> >> >> >> >> >> >> >> >> >> > Environment.OSVersion.ToString(); >> >> > >> >> > returned >> >> > >> >> > Microsoft Windows NT 5.1.2600 Service Pack 2 >> >> > >> >> > HTH >> >> > >> >> > Eddie >> >> >> >> >> >> >> >> >>
Thanks, I'll try it. "Andrei Pociu" wrote in message news:epeyqtpgGHA.1276@TK2MSFTNGP03.phx.gbl... > This should do it: > > http://support.microsoft.com/default.aspx?scid=kb;EN-US;304721 > > Best Regards, > Andrei Pociu > http://www.geekpedia.com > > "sebastieng" wrote in message > news:84D29ACB-888A-495B-88DA-BE428A80C4F1@microsoft.com... >> K, sorry >> >> Might compare version of %system path%\winver.exe file. I have no system >> under SP1 under the hand to check if it's changing from one SP to >> another... >> >> "Hamed" wrote: >> >>> Yes, but returnes "Microsoft Windows NT 5.1.2600.0" both SP1 and SP2 of >>> XP >>> >>> >>> "sebastieng" wrote in message >>> news:9CAF14F0-36B9-492A-886C-1EB7A4AEC503@microsoft.com... >>> > Environment.OSVersion is manage also by Framework 1.1 >>> > >>> > "Hamed" wrote: >>> > >>> >> Thanks Eddie. but I use .NET Framework 1.1.4 >>> >> >>> >> Your solution is in .NET Framework 2.0 >>> >> >>> >> Is there any solution for the version that I use? >>> >> >>> >> >>> >> "Eddie" <edob@home> wrote in message >>> >> news:eillA1OgGHA.4940@TK2MSFTNGP05.phx.gbl... >>> >> > Hamed wrote: >>> >> >> Hello >>> >> >> >>> >> >> How can I check what is the Windows version and if it is Windows >>> >> >> XP, >>> >> >> is >>> >> >> SP2 >>> >> >> of Windows XP installed? >>> >> >> >>> >> >> Regards >>> >> >> Hamed >>> >> >> >>> >> >> >>> >> >> >>> >> > Environment.OSVersion.ToString(); >>> >> > >>> >> > returned >>> >> > >>> >> > Microsoft Windows NT 5.1.2600 Service Pack 2 >>> >> > >>> >> > HTH >>> >> > >>> >> > Eddie >>> >> >>> >> >>> >> >>> >>> >>> > >