Main Software ActiveX ASP Source Downloads Android Contact
ASP

Here you can find some FREE usefull Classic ASP / VBScript code snippets, class modules, etc.
I use then myself on most of my projects, so you can rest assured they were optimized over time and are very reliable.
You can use them on your personal or commercial projects.
If you find them usefull to you, please make a donation (nomatter how small) to help me keep this content online for free.


Encode and Decode String File IO Misc
Base-64
HTML2Text
Recaptcha
SHA-1
Text2HTML
Escape
FileNameIn
FileSizeDesc
Format
RemoveTags
BinReadFile
CreateFolder
FileDateTime
FileExists
FileLen
FolderExists
GetFiles
GetFolders
ReadFile
IsValidEmail
SendCDOMail
ScanVar
Procedure CreateFolder (String) Create a new folder on server.
Example
<%
CreateFolder "C:\inetpub\www\myfolder"
CreateFolder "myfolder/subfolder"
%>


Source Code
<%
Sub CreateFolder(foldername)
dim fso, f, folderpath
if mid(foldername,2,1)<>":" and left(foldername,2)<>"\\" then folderpath = Server.MapPath(foldername) else folderpath = foldername
if right(folderpath,1) = "\" then folderpath=left(p,len(p)-1)
Set fso = CreateObject("Scripting.FileSystemObject")
if not fso.FolderExists(folderpath) then fso.CreateFolder folderpath
set fso = nothing
End Sub
%>