ASP/VBScript Object() Declare variables type Object.
ShotDev Focus:
- Declare variables type Object.
Example
asp_object.asp
<% Option Explicit %> <html> <head> <title>ShotDev.Com Tutorial</title> </head> <body> <% Dim objFileSys Set objFileSys = CreateObject("Scripting.FileSystemObject") Response.write objFileSys.GetDrive("C") Response.write objFileSys.GetDrive("D") If IsObject(objFileSys) Then Set objFileSys = Nothing End IF %> </body> </html>
Create a asp file and save to path root-path/myasp/
Run
http://localhost/myasp/asp_object.asp
Screenshot