Folder Permissions

This is a discussion on "Folder Permissions" within the Classic ASP section. This forum, and the thread "Folder Permissions are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > Classic ASP

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Nov 29th, 2006, 15:03
Junior Member
Join Date: Dec 2005
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
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?
Reply With Quote

Reply

Tags
setting them

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Directory Permissions jewelz Website Planning 10 Mar 2nd, 2007 16:43


All times are GMT. The time now is 21:30.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43