|
Folder Permissions
I have the following code that checks to see if a folder is created, and if not, then create it:
if fso.folderexists("D:\xxxx\uploads\" & rsUpdateLead("companyID") & "\") = false then
set cf=fso.CreateFolder("D:\xxxx\uploads\" & rsUpdateLead("companyID") & "\")
end if
Then I'm trying to upload the file the user added to the form:
MBRequest("fleUpload").SavePath = "D:\xxxx\uploads\" & rsUpdateLead("companyID") & "\"
MBRequest("fleUpload").Save
but it gives me permission errors for the save..
how do I set the permissions on the folder through code after the folder has been created?
|