How to programmatically update a FTP Directory for 'Write Access'

Posted on 2009-05-23
Medium Priority
Last Modified: 2012-05-07
I am writing scripts to create FTP directories automatically. The entire process will allow users to generate a username, password, etc for a new ftp share. The hurdle I am now facing is not being able to allow write access to the FTP share. I am not discussing NTFS security. I have attached an image that show what option I am trying to set.

The IISFTPDR vbs only allows for read access. I have tried to change the vbs to change the setting to write, but it does nothing different. The default for the accessflags = 1, I assumed 2 would set read + write.
' Set ftp virtual directory properties
    vdirObj.AccessFlags = 2 ' read access

Open in new window

Question by:LGerritse
1 Comment

Accepted Solution

LGerritse earned 0 total points
ID: 24457464
I finally determined the resolution. The OS was overwriting the vbs file. The changes I had made to the iisftpdr.vbs were never truly being saved. I am glad to finally have figured this out. I am also glad the MS has this code so well documented. I could not find this information anywhere. Furthermore I found another question of the same never truly answered.

I made a copy of the file and gave it a name unique to my environment. Here are the results of my testing.
1 - Read Access
2 - Write Access
3 - Read and Write Access

' Set ftp virtual directory properties
    vdirObj.AccessFlags = 2 ' read access

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Running classic asp applications under Windows Server 2008 R2 (x64) and IIS 7 is not as easy as one may think. It took me a while to figure it out while getting error 8002801d a few times. After you install the OS you will need to install the fol…
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Watch the video to know how one can repair corrupt Exchange OST file effortlessly and convert OST emails to MS Outlook PST file format by using Kernel for OST to PST converter tool. It can convert OST to MSG, MBOX, EML to access them. It can migrate…
To export Lotus Notes to Outlook PST or Exchange and Domino Server files to Exchange Server or PST files with ease, go for Kernel for Lotus Notes to Outlook conversion tool. Through the video, you can watch the conversion process. A common user with…

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question