Difference between revisions of "TFtpClient.HostDirName"

From Overbyte
Jump to: navigation, search
 
(silight grammar improvement and expanded this good start of article!)
 
Line 8: Line 8:
  
 
== Description ==
 
== Description ==
This value passed to the server when calling functions ''Cwd'' and ''CwdAsync''.  The folder must exist on the server in order for the functions to succeed.  
+
This is value passed to the server when calling the functions ''Cwd'' and ''CwdAsync''.  The folder must exist on the server in order for the functions to succeed. With this you can change your current directory on the server.
  
 
Required by Cwd and CwdAsync.
 
Required by Cwd and CwdAsync.

Latest revision as of 19:21, 12 September 2006

Main page -> ICS component reference -> TFtpClient -> HostDirName

Definition

property HostDirName: HostDirName;

Default Value

None

Description

This is value passed to the server when calling the functions Cwd and CwdAsync. The folder must exist on the server in order for the functions to succeed. With this you can change your current directory on the server.

Required by Cwd and CwdAsync.

Example

FtpClient1.HostName := 'ftp.simtel.net';
FtpClient1.Port := 'ftp';
FtpClient1.UserName := 'anonymous';
FtpClient1.Password := 'john.smith@mycomp.com';
FtpClient1.HostDirName := '/pub/simtelnet';
FtpClient1.OpenAsync;                            // Non-blocking open.

Best Practices

How To