Created
January 31, 2012 05:58
-
-
Save Daniel15/1709107 to your computer and use it in GitHub Desktop.
Get content of currently executing page (ASP / VBScript)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dim sPath | |
Dim oFS | |
Dim oTextStream | |
Dim sFile | |
sPath = Server.MapPath(Request.ServerVariables("SCRIPT_NAME")) | |
Set oFS = CreateObject("Scripting.FileSystemObject") | |
Set oTextStream = oFS.OpenTextFile(sPath, 1) | |
sFile = oTextStream.ReadAll() | |
Set oFS = Nothing | |
Set oTextStream = Nothing |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment