Design ftp uploading software with Delphi7

Source: Internet
Author: User
Tags ftp

With the continuous popularization of broadband, their own do-it-yourself website friends also more. Homepage completed, of course, to choose the right free space, with the FTP software upload. In this respect, there are many options for uploading software. So have you ever thought of doing it yourself? In fact, with Delphi can be very convenient to complete the work. Let ' s go!

Interface design

First, add NMFTP1, Edit, Opendialog1, Meno1, label, and so on, put the following figure.

Control code

1. "Connection" code:

procedure TForm1.Button2Click(Sender: TObject);
begin
nmftp1.Host :=edit3.Text ;
nmftp1.UserID :=edit1.text;
nmftp1.Password :=edit2.text;
nmftp1.Connect ;
end;

2. "Upload" code:

procedure TForm1.Button5Click(Sender: TObject);
var s:string;
begin
s:=label5.caption;
nmftp1.Upload('s',null);

3. "Abort" code:

procedure TForm1.Button4Click(Sender: TObject);
begin
NMFTP1.Abort ;
end;

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.