Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > VB.NET 2002/2003 Basics
|
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 16th, 2004, 09:53 AM
Registered User
 
Join Date: Aug 2003
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to weichunglow
Default 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

 
Old June 16th, 2004, 11:58 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Hello,

In a web application, are we talking about? You can use one of the servervariables, if so. Go to: http://www.4guysfromrolla.com/demos/servervariables.asp for a list of them.

Brian
 
Old June 16th, 2004, 10:11 PM
Registered User
 
Join Date: Aug 2003
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to weichunglow
Default

Quote:
quote:Originally posted by bmains
 Hello,

In a web application, are we talking about? You can use one of the servervariables, if so. Go to: http://www.4guysfromrolla.com/demos/servervariables.asp for a list of them.

Brian
In a Windows form application






Similar Threads
Thread Thread Starter Forum Replies Last Post
Can you change root directory of sqlServer 2005 hamilton SQL Server 2005 5 April 4th, 2007 05:46 AM
Moving the MySQL Database Root Directory miguelm BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 February 26th, 2005 02:13 PM
Root Directory Chudz BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 1 July 11th, 2004 03:13 PM
Get IIS root directory from VB.NET weichunglow Pro VB.NET 2002/2003 0 June 16th, 2004 09:39 AM
PHP uploaded to root directory arnec BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 1 August 15th, 2003 03:24 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.