【发布时间】:2010-10-14 09:20:18
【问题描述】:
我需要为我支持的应用程序实施一些版本控制,我可以将站点复制到 c:\inetpub\wwwroot\app_v2,然后从 c:\inetpub\wwwroot\app_v1 切换虚拟目录。
有没有办法从命令行更改 IIS 中虚拟目录的物理路径?
编辑:
我发现在 IIS7 中,您可以使用 appcmd 在此页面Change the Physical Path of Virtual Directory Content 上使用此格式设置虚拟目录的物理路径。我一直在寻找更通用的东西....
appcmd 设置 vdir /vdir.name:string /physicalPath:string
但是,似乎没有 IIS 6 的等价物。
【问题讨论】:
标签: asp.net iis deployment scripting appcmd