View Single Post
Old 30-10-2004, 10:00 PM   #1 (permalink)
DateWifaDiff
Registered User
 
Join Date: Oct 2004
Posts: 31
Creating folders dynamically

Dim MyPath, MyName As String


MyPath = Request.PhysicalApplicationPath & "images\user\" & Format(Now, "dd_MM_yy") ' Set the path.
MyName = Dir(MyPath, vbDirectory) ' Retrieve the first entry.

Try
If MyName = "" Then ' The folder is not there & to be created
Dim objDir As New DirectoryInfo(Request.PhysicalApplicationPath & "images\user\" & Format(Now, "dd_MM_yy"))

objDir.Create()

End If

i am getting an error:-

Could not find a part of the path "d:\".


Is there a special way to create folders within the website?

the code above works fine on my own machine
DateWifaDiff is offline   Reply With Quote