cmd下执行:
cd %systemroot%\system32\Inetsrv\
如果您运行的是 64 位 Windows,请从 %windir%\system32\inetsrv 目录
而不是 %windir%\syswow64\inetsrv 目录中使用 Appcmd.exe。
C:\Windows\System32\inetsrv>appcmd list VDIR
VDIR ”Default Web Site/” (physicalPath:%SystemDrive%\inetpub\wwwroot)
VDIR ”Default Web Site/PerlEx/” (physicalPath:C:\Perl\eg\PerlEx)
VDIR ”test/” (physicalPath:C:\inetpub\other)
VDIR ”test/t” (physicalPath:C:\inetpub\other)
核心命令: appcmd list VDIR