问题
I've just installed IIS Express, can anyone tell me where it gets the settings for the following variables?
%IIS_BIN%
%IIS_USER_HOME%
%IIS_SITES_HOME%
%SYSTEMDRIVE%
Thanks
回答1:
The following three environment variables are set by iisexpress.exe
during the process startup.
%IIS_BIN%
- refers to IIS Express installation folder (%PROGRAMFILES%\IIS Express
)%IIS_USER_HOME%
-%USERPROFILE%\Documents\IISExpress
%IIS_SITES_HOME%
-%USERPROFILE%\Documents\My Web Sites
%SYSTEMDRIVE%
- is a standard windows system environment variable
回答2:
To "change" the paths for the %IIS_USER_HOME%
and %IIS_SITES_HOME%
values, please see my explanation here.
回答3:
%IIS_USER_HOME% - The IIS Express home directory for the user
%IIS_SITES_HOME% - The default home directory for sites
%IIS_BIN% - The location of the IIS Express binaries
%SYSTEMDRIVE% - The drive letter of %IIS_BIN%
来源:https://stackoverflow.com/questions/4845970/global-variables-within-iis-express