Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating a folder on website

Status
Not open for further replies.

mdr227

Programmer
Nov 17, 2000
114
US
is it possible to create a folder on a website via ASP?
 
here is a function i use

Code:
Function createfolder(folderloc)

folderpath = Server.MapPath(folderloc)
Set fso = CreateObject("Scripting.FileSystemObject")
If NOT fso.FolderExists(folderpath) Then
       fso.CreateFolder(folderpath)
Else
End If
SET fso = NOTHING

end function
 
remove the else or place
response.write "folder exist already
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top