Search found 44 matches: hconnect

Return to advanced search

Re: Necesito conectarme a una FTP

Esta es la sintaxis usada:
// FTPPUTFILE( hConnect, "local file name", "remote file name", 0, 0 )

/* Ejemplo */
Code: Select all  Expand view

FTPPUTFILE( hConnect, "c:\temp_dir\ftp1.zip",  "/anon_ftp/TEST/FTP01.ZIP",  0,  0 )
 



Saludos

George
by George
Mon Apr 19, 2010 5:09 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Necesito conectarme a una FTP
Replies: 4
Views: 692

Re: Ayuda Por Favor

Julio, "Anystring" sirve. Es cualquier nombre que quieras usar. Prueba a usar MsgInfo() para ver que valores toman hInternet y hConnection: hInternet = INTERNETOPEN( "Anystring", INTERNET_OPEN_TYPE_DIRECT, 0, 0, 0 ) MsgInfo( hInternet ) hConnect = INTERNETCONNECT( hInternet, ...
by Antonio Linares
Thu Jan 28, 2010 5:58 pm
 
Forum: FiveWin para Pocket PC
Topic: Ayuda Por Favor
Replies: 6
Views: 1687

Re: Ayuda Por Favor

... 3 // // flags for FTP // #define INTERNET_FLAG_TRANSFER_ASCII 1 #define INTERNET_FLAG_TRANSFER_BINARY 2 FUNCTION MAIN() LOCAL hInternet, hConnect hInternet = INTERNETOPEN( "Anystring", INTERNET_OPEN_TYPE_DIRECT, 0, 0, 0 ) \\ donde dice Anystring hay que colocar algo hConnect ...
by Julio Perez
Thu Jan 28, 2010 3:33 pm
 
Forum: FiveWin para Pocket PC
Topic: Ayuda Por Favor
Replies: 6
Views: 1687

Re: Send and Receive for FTP

Best regards, Otto //? FTPGETFILE( hConnect, "Your remote file", "Your local file", 0, FILE_ATTRIBUTE_ARCHIVE, 0, 0 ) //? FTPPUTFILE( hConnect, "Your local file", "Your remote file", 0, 0 ) IF len(aFiles) ...
by Otto
Sat Nov 14, 2009 5:38 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Send and Receive for FTP
Replies: 2
Views: 615

Re: Otra de FTP

... String, ByVal lpszNew As String) As Boolean Private Declare Function FtpGetFile Lib "wininet.dll" Alias "FtpGetFileA" (ByVal hConnect As Long, ByVal lpszRemoteFile As String, ByVal lpszNewFile As String, ByVal fFailIfExists As Long, ByVal dwFlagsAndAttributes As Long, ByVal ...
by QAZWSX2K
Tue Oct 06, 2009 12:44 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Otra de FTP
Replies: 14
Views: 3816

Re: FTP Again

... //-----------------------------------------------------------------------------------------// static function Connect() LOCAL hInternet, hConnect // I have tried "anystring" as well as the IP hInternet = INTERNETOPEN( "99.9.9.999", INTERNET_OPEN_TYPE_DIRECT, 0, 0, ...
by Colin Haig
Sun Jul 12, 2009 1:08 am
 
Forum: FiveWin for Pocket PC
Topic: FTP Again
Replies: 8
Views: 2164

FTP Again

... I am using - I dont get any errors but the file is never transferred. Any ideas greatfully accepted. static function Connect() LOCAL hInternet, hConnect hInternet = INTERNETOPEN( "Anystring", INTERNET_OPEN_TYPE_DIRECT, 0, 0, 0 ) if hInternet == 0 MsgInfo('No Internet') endif hConnect ...
by Colin Haig
Thu Jul 09, 2009 9:35 am
 
Forum: FiveWin for Pocket PC
Topic: FTP Again
Replies: 8
Views: 2164

FTP

... Mobile phone running windows 6 - I am trying to setup FTP from the phone back to a windows server - using the sample code by Enrico but I cant get hConnect to return a value hConnect = INTERNETCONNECT( hInternet, "myIP",INTERNET_DEFAULT_FTP_PORT, "myUser", "myPass", ...
by Colin Haig
Sat Jun 27, 2009 6:26 am
 
Forum: FiveWin for Pocket PC
Topic: FTP
Replies: 4
Views: 1025

Re: wifi

... ) oTmr:End() return nil //----------------------------------------------------------------------------// FUNC upload() LOCAL hInternet, hConnect local aInfo := {} LOCAL I := 0 aInfo := Directory( CurDir() + "\*.TXT" ) if Len( aInfo ) > 0 hGprs:=GprsConnect() hInternet = ...
by Otto
Tue May 19, 2009 11:59 am
 
Forum: FiveWin for Pocket PC
Topic: wifi
Replies: 9
Views: 3287

Re: file to FTP

Natter, how do you test that you have full access as you write in your first post? if FTPPUTFILE( hConnect, CurDir() +"\"+ aInfo[I,1], "/testinfo/STB1/"+aInfo[I,1], 0, 0 )=.t. I have some FTP servers where the name for example is test.info and the directory ...
by Otto
Sat May 02, 2009 9:44 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: file to FTP
Replies: 8
Views: 1223

Re: file to FTP

Natter, have you tried with:

FTPPutFile( hConnect, cUpFile, cUpFile, 0, 0 )

best regards,
Otto
by Otto
Sat May 02, 2009 2:26 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: file to FTP
Replies: 8
Views: 1223

** FUNÇÕES DE FTP ********************************************************************************* FUNCTION ftpver(regis) LOCAL hInternet, hConnect, r, okk, hGprs, ligaok, kk, counter Local msg_login:="" Local msg_passs:="" // // File attributes // #define FILE_ATTRIBUTE_READONLY 1 #define ...
by rasptty
Sun Sep 21, 2008 12:04 pm
 
Forum: FiveWin for Pocket PC
Topic: FTP Uplaod ERROR
Replies: 2
Views: 1003

Upload files via FTP

... // // flags for FTP // #define INTERNET_FLAG_TRANSFER_ASCII 1 #define INTERNET_FLAG_TRANSFER_BINARY 2 STATIC hLib FUNCTION MAIN() LOCAL hInternet, hConnect hLib = LOADLIB32( "wininet.dll" ) hInternet = INETOPEN( "Anystring", INTERNET_OPEN_TYPE_DIRECT, 0, 0, 0 ) hConnect = INETCONNECT( hInternet, ...
by Romeo
Fri Sep 19, 2008 4:56 pm
 
Forum: All products support
Topic: Upload files via FTP
Replies: 3
Views: 1421

Manage many files in FTP ...

... to needful FTP direcoty : hLib := LOADLIB32( "WinInet.dll" ) hInternet := InetOpen( cFsrv, 1, 0, 0, 0 ) hConnect := InetConnect( hInternet, cFsrv, 0, cFusr, cFpsw, 1, 0, 0 ) How to get an array of files in FTP directory ? It's needful to get ...
by Rimantas
Wed Jul 30, 2008 11:03 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Manage many files in FTP ...
Replies: 2
Views: 879

Problema GPRS

... 3 // // flags for FTP // #define INTERNET_FLAG_TRANSFER_ASCII 1 #define INTERNET_FLAG_TRANSFER_BINARY 2 FUNCTION MAIN() LOCAL hInternet, hConnect hInternet = INTERNETOPEN( "Anystring", INTERNET_OPEN_TYPE_DIRECT, 0, 0, 0 ) msginfo(hInternet) hConnect = INTERNETCONNECT( hInternet, "servidor ...
by softruz
Mon Jun 09, 2008 11:44 am
 
Forum: FiveWin para Pocket PC
Topic: Problema GPRS
Replies: 2
Views: 1101
PreviousNext

Return to advanced search