Re: [twsocket] [FTPCli] - Quote Method

2005-08-17 Thread Dan

- Original Message - 
From: Artem Antonov [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.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 'CHMOD': 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 CHMOD.  There's no guarantee it will work though.

Dan
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] [FTPCli] - Quote Method

2005-08-16 Thread Angus Robertson - Magenta Systems Ltd
 But from FTP server I get:
 16.08.2005 10:36:17 - Executing requested command...
  chmod 644 test.txt
  500 'CHMOD': command not understood.

It means exactly what it says, the FTP server does not support a CHMOD 
command.  

There is no standard FTP command to set file attributes, you'll need to 
ask whoever runs the FTP server whether such a command is supported and 
how to use it.  There may be a clue as to FTP server software name 
after the sign-on, which might allow to seach for information. 

Angus
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be