IIS7.0 command line for the following website's physical directory code

  • 2020-05-06 12:06:30
  • OfStack

CD %systemroot%\system32\Inetsrv\

If you are running 64-bit Windows, use Appcmd.exe from the %windir%\system32\inetsrv directory instead of %windir%\syswow64\inetsrv directory.

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)

Unfortunately, administrator privileges are required.

Related articles: