Category Archives: ASP

Classic ASP

Classic ASP on Windows Server 2016

To parse XML

Required:

  1. Microsoft Core XML Services (MSXML) 6.0
    https://www.microsoft.com/en-us/download/details.aspx?id=3988
  2. Change script to 6.0
    https://stackoverflow.com/questions/16167111/activex-component-cant-create-object-msxml2-domdocument
  3. Install MSXML 4.0 Service Pack 3 if above steps still fail.
    https://www.microsoft.com/en-us/download/confirmation.aspx?id=15697

Output JSON

https://code.google.com/archive/p/aspjson/

 

VBScript and FTP (WinSCP)

WinScp:

Download .NET assembly / COM library:
https://winscp.net/eng/download.php

Install as COM:

https://winscp.net/eng/docs/library_install#installing

VBScript (.wsf)

Reference:

Dictionary

Loop

Reference:

  1. http://www.w3schools.com/asp/met_add.asp

Utility Functions

 

DB Class

 

Check Object is Empty or Not

After above statement, the variable “obj” will be always “NOT NULL” even “object” is null

So, how to check if “obj” is null? To use “isEmpty”. Fucking stupid.

Note: Don’t use “isObject”, the result is always true.