如何使用VBScript获取IIS本地路径 [英] How to get IIS local Path with VBScript

查看:74
本文介绍了如何使用VBScript获取IIS本地路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我尝试使用VBScript获取我的网站的IIS本地路径。但这似乎很难做到这一点。

I try to get the IIS local Path of my web site with VBScript. But it seems very difficult to do this.

在这里你可以查看我的代码 - > 

Here you can have a look on my code -> 

没有错误但没有返回任何内容

No error but nothing is returned

你能帮我这么做吗?

问候,

推荐答案

您好,

此AdsPath:IIS :// LocalHost / W3SVC / AppPools / CIS是应用程序池的路径,而不是网站的路径!这就是为什么你不能得到任何东西作为路径。正确的AdsPath应如下所示:IIS:// LocalHost / W3SVC / 1 / CIS其中1是
虚拟站点的标识符。这里1通常表示"Defult Web Site",但您应该在IIS管理控制台中检查。

This AdsPath: IIS://LocalHost/W3SVC/AppPools/CIS is a path for an application pool and not for a website! This is why you can not get anything as Path. The correct AdsPath should look like this: IIS://LocalHost/W3SVC/1/CIS where 1 is the identifier of the virtual site. Here 1 usually means the "Defult Web Site", but you should check your in the IIS management console.


这篇关于如何使用VBScript获取IIS本地路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆