Home » Category » Microsoft Windows 2000/NT/2003

Microsoft Windows 2000/NT/2003: - Quote Method

118| Mon, 12 May 2008 00:47:00 GMT| artemantonov| Comments (1)
Hello!

I want to set file attributes on FTP server and use such commands:

FtpClient.HostDirName := '/my_dir/';
ExecuteCmd(FtpClient.Cwd, FtpClient.CwdAsync);

FtpClient.HostFileName := 'test.txt';
FtpClient.LocalFileName := 'chmod 644 test.txt';
ExecuteCmd(FtpClient.Quote, FtpClient.QuoteAsync);

But from FTP server I get:

16.08.2005 10:36:17 - Executing requested command
chmod 644 test.txt
< 500 'CHMD': command not understood.
Request 33 done
Status code = 500.

How I can set file attributes or where is I am wrong?

Thanks!

Best regards,
Artem Antonov.

Keywords & Tags: -, quote, method, microsoft, windows 2000, nt, 2003

URL: http://www.msdns.org/windows-2000-nt/8/
 
«« Prev - Next »» 1 helpful answers below.
Message
From: "Artem Antonov" <antonov_a (AT) rambler (DOT) ru>
To: "ICS support mailing" <twsocket (AT) elists (DOT) org>
Sent: Tuesday, August 16, 2005 8:48 AM
Subject: [twsocket] [FTPCli] - Quote Method

Hello!

I want to set file attributes on FTP server and use such commands:

FtpClient.HostDirName := '/my_dir/';
ExecuteCmd(FtpClient.Cwd, FtpClient.CwdAsync);

FtpClient.HostFileName := 'test.txt';
FtpClient.LocalFileName := 'chmod 644 test.txt';
ExecuteCmd(FtpClient.Quote, FtpClient.QuoteAsync);

But from FTP server I get:

16.08.2005 10:36:17 - Executing requested command
>chmod 644 test.txt

< 500 'CHMD': command not understood.
Request 33 done
Status code = 500.

How I can set file attributes or where is I am wrong?

Thanks!

Best regards,
Artem Antonov.

Try SITE CHMD. There's no guarantee it will work though.

Dan

dan | Mon, 12 May 2008 00:49:00 GMT |

Microsoft Windows 2000/NT/2003 Hot Answers

Microsoft Windows 2000/NT/2003 New questions

Microsoft Windows 2000/NT/2003 Related Categories