get path

  • Thread starter Thread starter Steph
  • Start date Start date
S

Steph

Hello,

Is it possible to get the path where dotnet is installed ?

On my system, it is : C:\WINNT\Microsoft.NET\Framework\v1.0.3705\
How can I get this path in my c# program ?

thanks

Steph
 
Hi Steph,
Hello,

Is it possible to get the path where dotnet is installed ?

On my system, it is : C:\WINNT\Microsoft.NET\Framework\v1.0.3705\
How can I get this path in my c# program ?

// I think that You can guest suffix of this path as:

string pathSuffix=@"Microsoft.NET\Framework\v1.0.3705"

// and prefix you'll find by:

string
pathPrefix=Environment.GetFolderPath(Environment.SpecialFolder.System);

Join those path with *Path.Combine* method.

Regards

Marcin

PS: To Check .NET version use: *Environment.Version"
 
Thanks :-)

Steph

Marcin Grzêbski said:
Hi Steph,


// I think that You can guest suffix of this path as:

string pathSuffix=@"Microsoft.NET\Framework\v1.0.3705"

// and prefix you'll find by:

string
pathPrefix=Environment.GetFolderPath(Environment.SpecialFolder.System);

Join those path with *Path.Combine* method.

Regards

Marcin

PS: To Check .NET version use: *Environment.Version"
 
Back
Top