I've gone through the metabase.xml file, and I thought I had found it, and since IIS6 does not have a metaedit equivalent it's hard to verify this.
My script is the following:
Dim WebServer, UploadReadAheadSize
Set WebServer = GetObject("IIS://localhost/W3SVC/sitenum/folder/script.asp")
' Get UploadReadAheadSize property
UploadReadAheadSize = WebServer.UploadReadAheadSize
' Set another size
WebServer.UploadReadAheadSize = 0
WebServer.SetInfo
But whenver I use a site number, folder, and proper script file (not as listed above) I get the following error:
(null): The system cannot find the path specified.
Which, since the path/script file name are accurate, I'm not getting the site number correct.
Any help would be appreciated. Thanks.
fh.
Also, your code should use WebFile instead of WebServer as variable name
since that's what it really is.
Otherwise, your code worked for me once I corrected the error I pointed out.
Finally, I hope you understand what you are actually doing by setting
UploadReadAheadSize to 0 -- some 3rd party programs may break because of
that.
--
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"Frederic Henry" <anon...@discussions.microsoft.com> wrote in message
news:B3561330-2950-4EF7...@microsoft.com...
Alternatively, to verify the site id, you can also do the following:
1) Open IIS Manager
2) Right click on website-> Properties
3) Click on the Properties button in the Enable Logging section
4) Under the General tab, at the very bottom, you will find the Log File
Name in the format w3svc<site number>/exyymmdd.log
To confirm if you have the right path, you can run the following command
"cscript adsutil.vbs enum w3svc/<site id>/root/<folder name>/<file name>"
Be sure to include root in the path above to access any directories/virtual
directories under the site.
If the above command returns an error, you have the wrong path.
If it returns a bunch of metbase properties and values, you have the right
path.
The script adsutil.vbs is located in the C:\inetpub\adminscripts by default.
Hope this helps!!!
Thanks,
Yogita Manghnani
Microsoft Developer Support
Internet Information Server
*********************************************************************
>>Please do not send email directly to this alias. This is an online
account name for newsgroup participation only.<<
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use.
© 2003 Microsoft Corporation. All rights reserved.
*********************************************************************