Recent

Author Topic: Send file in the LAN  (Read 10546 times)

Szymad

  • New Member
  • *
  • Posts: 12
Send file in the LAN
« on: December 06, 2010, 09:20:39 pm »
Hi,
I want send file to another computer using lazarus.
How should my program do:
 1. Can send files from e.g. H:\ to \\ANOTHER_COMPUTER\PUBLIC_FOLDER1 or to 192.161.1.102
 2. Chceck avaible computers in LAN
 3. Enable Sharing selected folder eg. ShareDirectory(C:\SD) should enable this network location: \\My_PC\SD
 
I need the progress of file.

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2673
Re: Send file in the LAN
« Reply #1 on: December 27, 2010, 08:17:22 pm »
if it is windows only, have a look at MSDN CopyFileEx
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

TAUFIQ

  • Newbie
  • Posts: 4
Re: Send file in the LAN
« Reply #2 on: January 21, 2011, 02:04:33 pm »
Hello all,

Can help me how to send data from LAN Port and read data from LAN Port in lazarus???

Thanks...

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2673
Re: Send file in the LAN
« Reply #3 on: January 21, 2011, 02:19:01 pm »
What do you mean by send data from a LAN port ?
Do you mean on filesystem level (as asked in this thread) or on socket level ?
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

michaelthuma

  • Jr. Member
  • **
  • Posts: 51
Re: Send file in the LAN
« Reply #4 on: January 21, 2011, 02:31:21 pm »
I think taufiq wants to do sthg. like ftp just without a server. Finally this is solved by the filesystem and/or file transfer protocol.

liewald

  • Full Member
  • ***
  • Posts: 144
Re: Send file in the LAN
« Reply #5 on: January 21, 2011, 02:41:27 pm »
Sounds like a job for  INDY  to me!

xenblaise

  • Sr. Member
  • ****
  • Posts: 358
Re: Send file in the LAN
« Reply #6 on: January 21, 2011, 06:56:27 pm »
copyfile('C:\SD\progressfile.dat', '\\ANOTHER_COMPUTER\PUBLIC_FOLDER1\progressfile.dat');  :D

 

TinyPortal © 2005-2018