SoFunction
Updated on 2025-04-13

Summary of the difference between asp #include file and #include virtual


include file can be described by a combination of relative paths or full paths and file names

For example: file="..\script\" file="../script/"
Strangely, it can also be compiled by file="../script\"

His forbidden: It cannot be expressed by absolute paths

For example: file="/script/"

For virtual, the absolute path of virtual suppression can be used to represent it

virtual="/yousite/script/"

raintung
2001.5.4
But in programming asp3.0
Regarding virtual, it can be expressed using the relative path of virtual suppression. I have never verified successfully, I hope there will be some
Someone comes to give a guide
For example <!-- #include virtual="../script/" -->

The result proves:
(1) Slashes or backslashes are irrelevant
(2) File can not be represented except for the full path, while virtual is just the opposite