Thanks Jan. I know that my ftp server supports the SITE command, and when I use FileZilla to change folder permissions, I see that it executes Command: SITE CHMOD 777 Yellow_Folder
Would you be kind enough to tell me how to issue this command within visual basic? I have tried what seems to be everything.
So far, I have this:
Dim host As String = "ftp://0.0.0.0/images/2012/" '0.0.0.0 is not the actual IP'
Const username As String = "user"
Const password As String = "pass"
Dim ftp As System.Net.FtpWebRequest = System.Net.FtpWebRequest.Create(host)
ftp.Credentials = New System.Net.NetworkCredential(username, password)
ftp.Method = "SITE CHMOD 777 Yellow_Folder"
Dim response As System.Net.FtpWebResponse = CType(ftp.GetResponse(), System.Net.FtpWebResponse)
response.Close()
When I execute this, I get an exception that the method isn't supported (parameter: value).
I'm pretty sure I'm not doing something correct rather than the actual CHMOD command not being supported. I see that the built-in commands such as PrintWorkingDirectory and MakeDirectory are just strings PWD and MKDir, so I tried setting up a public const CHMOD as string = "SITE CHMOD 777 Yellow_Folder", but it won't let me attach it to the end webrequestmethods.ftp (i.e. I can't write webrequestmethods.ftp.CHMOD.
So I guess my question is, how can I issue the command?
Thanks!