views:

220

answers:

2

The only pre-process directive that I know about in VBScript / Classic ASP is the #include. I don't know if that is the official name but I'm basically looking for code that can execute code or other instructions before the general VBScript.

Are there any other such directives in VBScript? Such as #If or something?

I'd like to be able to conditionally include or exclude a certain include file.

+2  A: 

According to this article there are six directives. Examples are given in the article.

They are:

  • #include
  • #config
  • #echo
  • #fsize
  • #flastmod
  • #exec
Cory Larson
Thanks. That is very helpful.
Frank V
Wow, aspemporium.com.... I wonder how many hits they are getting these days. :)
joeslice
The aspemporium.com is written in ASP.NET itself so it looks like they've moved on too! But it's nice they keep the old stuff around.
tooshel
A: 

According to MSDN, though others are valid for Server Side Include files - only #include works in ASP.

Mark Brackett