服务器之家:专注于VPS、云服务器配置技术及软件下载分享
分类导航

云服务器|WEB服务器|FTP服务器|邮件服务器|虚拟主机|服务器安全|DNS服务器|服务器知识|Nginx|IIS|Tomcat|

服务器之家 - 服务器技术 - IIS - iis7.0命令行下列网站的物理目录的代码

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

2022-12-15 16:28IIS教程网 IIS

如果您运行的是 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)

可惜了,要管理员权限.

延伸 · 阅读

精彩推荐