, . : -p
Since a single application instance may include several virtual directories that will map to different physical paths, you cannot get the same. You could probably find an automation object (*) to install on your server, then create an instance (for example, from Server.CreateObject) and request it for the path to the main application, i.e. Ignore any virtual directories.
(*) Suggested automation objects; something that can read the IIS metabase.
source
share