“路径”是什么意思?在 adsutil.vbs 中

发布于 2024-09-15 19:51:20 字数 720 浏览 2 评论 0原文

我正在尝试使用 Windows 批处理文件启动和停止 IIS 中托管的网站,并发现有一个选项,通过 cscript.exe,您可以使用带有 START_SERVER 选项的 adsutil.vbs 文件。

我知道以下命令可以做到这一点,但我不明白我应该为“路径”输入什么,

cscript.exe adsutil.vbs START_SERVER     path     - starts the given web site

文档有以下示例

cscript.exe adsutil.vbs START_SERVER W3SVC/1

,但 W3SVC/1 与虚拟目录路径没有任何关系或应用程序名称。

你能帮我理解吗?

更多信息: http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/d3df4bc9-0954-459a-b5e6-7a8bc462960c.mspx?mfr=true

I am trying to start and stop a website hosted in IIS with windows batch file and found that there is an option that with cscript.exe you can make use of adsutil.vbs file with START_SERVER option.

I know that the following command will do that, but I don't understand what I am supposed enter for 'path'

cscript.exe adsutil.vbs START_SERVER     path     - starts the given web site

the documentation has a the following sample

cscript.exe adsutil.vbs START_SERVER W3SVC/1

but W3SVC/1 no way related to virtual directory path or the application name.

can you please help me understand??

more info on: http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/d3df4bc9-0954-459a-b5e6-7a8bc462960c.mspx?mfr=true

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

柠檬心 2024-09-22 19:51:20

路径是网站的内部密钥。

它在 IIS 中可见

Path is the internal key of the website.

It is visible in IIS

风向决定发型 2024-09-22 19:51:20

在 IIS 中,您可以创建许多网站。每个站点都由 IIS 元数据库中唯一的 siteID 来标识。因此,W3SVC/1 指的是第一个网站,通常是 IIS 中预先配置的默认网站

In IIS you have the capability of creating many web sites. Each site is identified by a unique siteID within the IIS metabase. Hence, W3SVC/1 refers to the web site number one, which is usually the Default Web Site that comes preconfigured in IIS.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文