Special Paths

  • Thread starter Thread starter Mythran
  • Start date Start date
M

Mythran

Besides looking up the actual registry values, are there any direct ways of
retrieving the path to the following folders?

(Default installation on WinXp)
C:\Windows\Microsoft.Net
C:\Windows\Microsoft.Net\Version\
C:\Windows\Microsoft.Net\Version\Config
C:\Windows\Microsoft.Net\Version\Temporary ASP.Net Files



One of the things I want to do (there are more, just explaining one of them)
is to recursively delete all of the files in Temporary ASP.Net Files. This
application that I wrote does this already but I am hardcoding the path to
the Temporary ASP.Net Files in it...this app is just a small utility program
for me to use to clean out all temporary files (Temp files, Internet Cache,
et cetera).

:)

Thanks in advance! :)

Mythran
 
Mythran,

AFAIK, there is no way through managed code to get the install directory
of .NET. You will have to resort to reading the registry for the versions
of the runtime installed, and the directories where they are installed.

Hope this helps.
 
Back
Top