Get IIS root directory from VB.NET
Hi,
I know that this sounds wierd, but I need this for a deployment process, I can get the windows directory by calling to the kernel32.dll using declaration as below:
Private Declare Function GetWindowsDirectory Lib "kernel32.dll" Alias "GetWindowsDirectoryA" (ByVal lpBuffer As String, ByVal nSize As Long) As Long
Therefore, I am wondering, will there be any function calls to retrieve the IIS root directory of the pc?
Or any other may to find out which directory is the IIS installed to?
Thank you very much
best regards,
wei chung
|