iis7.0命令行下列网站的物理目录的代码

2019-10-16 18:42:49王旭
CD %systemroot%system32Inetsrv

如果您运行的是 64 位 Windows,请从 %windir%system32inetsrv 目录而不是 %windir%syswow64inetsrv 目录中使用 Appcmd.exe。

C:WindowsSystem32inetsrv>appcmd list VDIR
VDIR "Default Web Site/" (physicalPath:%SystemDrive%inetpubwwwroot)
VDIR "Default Web Site/PerlEx/" (physicalPath:C:PerlegPerlEx)
VDIR "test/" (physicalPath:C:inetpubother)
VDIR "test/t" (physicalPath:C:inetpubother)

可惜了,要管理员权限.