FTP to HP3000 Servers

To upload a file via FTP to an HP3000 server, you would type something like this from an interactive FTP prompt:

Put myfile.txt myfile;rec=-32,1,f,ascii;disc=250000

To duplicate this with Chilkat, call PutFile such that the remote filename is “myfile;rec=-32,1,f,ascii;disc=250000”. For example:

// This is a C# example, but the same concept applies w/ using Chilkat in any of the supported
// programming languages:
bool success = ftp.PutFile("myfile", "myfile;rec=-32,1,f,ascii;disc=250000");
...

The same applies when downloading a file. You might type this at an FTP command prompt:

get MYFILE.TXT moxfile4;rec=-429,1,f,ascii

Using Chilkat FTP2, you would do this (in C#) —

string localFilename = "myFile.txt";
string remoteFilename = "MYFILE.TXT moxfile4;rec=-429,1,f,ascii";
bool success = ftp.GetFile(remoteFilename, localFilename);
Tags :