龙盟编程博客 | 无障碍搜索 | 云盘搜索神器
快速搜索
主页 > 操作系统 > Windows系统 > 服务器 >

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

时间:2014-06-17 02:15来源:网络整理 作者:网络 点击:
分享到:
如果您运行的是 64 位 Windows,请从 %windir%\system32\inetsrv 目录而不是 %windir%\syswow64\inetsrv 目录中使用 Appcmd.exe
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)

可惜了,要管理员权限.
精彩图集

赞助商链接