hi
i think that what you are trying to do, is an ftp application.
you sould check the indy components in delphi 7!
there is an example of how to upload a file:
procedure TForm1.Button2Click(Sender: TObject);
var
f : string;
begin
with IdFTP1 do
begin
Disconnect;
Username := 'myusername';
Password := 'mypassword';
Host := 'ftp.mydomain.gr';
f := 'C:\mycfg.xml';
Connect();
if Connected then
begin
application.ProcessMessages;
self.IdFTP1.ChangeDir('/httpdocs');
IdFTP1.Put(f, ExtractFileName(f));
application.ProcessMessages;
end;
end;
end;