General discussion
-
Topic
-
Set file permissions using WinInet FtpCommand
LockedI’m trying to use the FtpCommand function in Microsoft’s WinInet.dll library to set file and directory permissions on a UNIX FTP server.
When I run the following command from the MS DOS FTP client, it works and returns the following response:
ftp> quote site chmod 0700 mydir
250 Changed.When I try to issue the same command via the FtpCommand function, it fails. Here is the response I gete back from the FTP server:
200 Type okay.
200 PORT command successful.
500 Syntax error, command unrecognized.I am running this command from the root directory.
The directory I am trying to change perms for is directly under the root directory.
I have tried specifying the directory using both “/mydir” AND “mydir”.Any help greatly appreciated.