File transfer

File transfer

Postby Richard Chidiak » Fri Mar 10, 2006 4:27 pm

How can we transfer automatically (ftp like) a file to a computer on a wifi network.

I know the computer's IP

Is there any other way than using sockets ?

Tia

Richard
http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
User avatar
Richard Chidiak
 
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France

Postby Antonio Linares » Fri Mar 10, 2006 6:00 pm

Richard,

If the target computer is sharing a folder, then you may directly write on such folder, i.e.:

MemoWrit( "\\name\shared\file.txt", <cText> )
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 35262
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Richard Chidiak » Mon Mar 13, 2006 7:58 pm

Antonio Linares wrote:Richard,

If the target computer is sharing a folder, then you may directly write on such folder, i.e.:

MemoWrit( "\\name\shared\file.txt", <cText> )


Antonio,

Good idea.

We can access the server this way. i still have some security issue, the server is prompting for a user login and password every time we start again the pocket pc ! we are trying to fix that one, replying OK to an empty password does the job and writes on the shared folder in the network. This makes FWPPC access to a network magic !

This is a snapshot of the testing code

#include "C:\FWPPC\INCLUDE\FWCE.ch"

function Main()
LOCAL WTEXTE,cfile,wtexte

cfile := "\\serveur\c_serveur\testhp2.txt"
nHandle := fCreate( cFile )

WTEXTE := "ligne 1"
FWRITE( nHandle, WTEXTE + CRLF )

WTEXTE := "ligne 2"
FWRITE( nHandle, WTEXTE + CRLF )
fClose( nHandle )

return nil


:D

Richard
http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
User avatar
Richard Chidiak
 
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France

Postby Antonio Linares » Mon Mar 13, 2006 8:39 pm

Richard,

good :)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 35262
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: File transfer

Postby Antonio Linares » Tue Jan 08, 2013 11:38 am

Richard,

the server is prompting for a user login and password every time we start again the pocket pc ! we are trying to fix that one


Were you able to find a solution for that ? thanks
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 35262
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: File transfer

Postby Richard Chidiak » Sat Jan 12, 2013 7:03 am

Antonio

No we couldn't make it work , we made a workaround with ftp transfer.

Richard
http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
User avatar
Richard Chidiak
 
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France


Return to FiveWin for Pocket PC

Who is online

Users browsing this forum: No registered users and 1 guest