Code: Select all
cUrl := cProtocol + ALLTRIM( cUser ) + ":" + ALLTRIM( cPassWord ) + "@" + ALLTRIM( cServer )
msgbox (cUrl, "Site") /* bad URL */
oUrl := tURL() :New( cUrl )
IF EMPTY( oUrl )
RETURN nil
Moderator: Rathinagiri
Code: Select all
cUrl := cProtocol + ALLTRIM( cUser ) + ":" + ALLTRIM( cPassWord ) + "@" + ALLTRIM( cServer )
msgbox (cUrl, "Site") /* bad URL */
oUrl := tURL() :New( cUrl )
IF EMPTY( oUrl )
RETURN nil
Code: Select all
"ftp://" + UserName + ":" + Password + "@" + ServerName
so i did "extract" Name wrong ...>> 11-23-17 10:02PM 196572273 Devcon Party_2.mkv
11-23-17 09:09PM 121868933 DevConParty_1.mkv
11-23-17 09:49PM 2466639002 Express++ Roger Donnay.mkv
04-24-18 02:03PM 1609613369 OOP Hoffmann deutsch.mkv
04-30-18 05:02PM 1160915531 OOP in der Praxis Andreas Herdt.mkv
04-30-18 01:27PM 1514723673 OOP MH english.mkv
04-30-18 01:27PM 1381491719 Steffen Piersig Advanced SQL deutsch (Anfang fehlt).mkv
Code: Select all
acDir := oClient:listFiles()
Code: Select all
acDir := oClient:list()
Code: Select all
#ELSE
ftpMain.Grid_2.DisableUpdate
ftpMain.Grid_2.DeleteAllItems
acDir := oClient:list() // on serverside
avalues := AtInside( CRLF, acDir ) // make Array from String
iMax := LEN( avalues )
FOR x := 1 TO iMax
cLine := avalues[ x ]
cDate := SUBSTR(cLine,1,8)
cTime := SUBSTR(cLine,11,7)
cSize := SUBSTR(cLine,18,22)
cFile := SUBSTR(cLine,40)
IF !EMPTY(cFile)
nDirImg := IF( 'DIR' $ cSize , 0, 1 )
ftpMain.Grid_2.AddItem( { nDirImg, ;
cFile, ;
LTRIM(cSize), ;
cDate, ;
cTime, ;
"" } )
ENDIF
NEXT
#ENDIF
ftpMain.Grid_2.EnableUpdate
RETURN nil
as i say : it is not "my" Code ... i made it from MinuGUI Extended Version Sample just ready for HMG
Code: Select all
#IFDEF
#ELSE
#ENDIF
Code: Select all
ftp://ftp2019:Aio3t19?@vserver.xbaseentwickler.de
Code: Select all
cUrl := "ftp://@vserver.xbaseentwickler.de"
oUrl := tURL() :New( cUrl )
oClient := TIpClientFtp():new( oUrl, Sites->Log )
Code: Select all
https://hmgforum.com/viewtopic.php?f=5&t=6482&start=10
do you mean c:\MiniGUI\SAMPLES\Advanced\FtpClient\Compile.batdanielmaximiliano wrote: ↑Sun Jun 21, 2020 10:50 pm how to compile your minigui example
I am not a HMGext user
I try to use the Batch compile.bat and it gives me a compilation error
hm ... how to validate if User want to type it into TEXTBOXserge_girard wrote: ↑Mon Jun 22, 2020 8:51 am Ampersand and questionmark in URL are supposed to mark parameters such as:
try:AUGE_OHR wrote: ↑Mon Jun 22, 2020 12:33 am hi,as i say : it is not "my" Code ... i made it from MinuGUI Extended Version Sample just ready for HMG
Modification "in" Code most useso i leave Original Code untouchedCode: Select all
#IFDEF #ELSE #ENDIF
it was the GRID which display Data "wrong" so i try to find other Way to fill GRID.
i have use o:listFiles() as Serge say but i´m not sure about it any more
now i use o:list() but "miss Attribute" now.
---
you have "@" in User Name but @ is the "delimiter" for Server in String -> wrong URL
i also had a Password with "?" which does not work so some Sign have "special" function in this URL Syntax.
try it in your Browser (FF, IE or EDGE)this will lead you to Google or Bing as there is "?" in Password ( not valid any more ... )Code: Select all
ftp://ftp2019:Aio3t19?@vserver.xbaseentwickler.de
i was told it is possible to use "@" or "?" but you can´t send it in URL-Stringnow Browser will ask for User and PasswordCode: Select all
cUrl := "ftp://@vserver.xbaseentwickler.de" oUrl := tURL() :New( cUrl ) oClient := TIpClientFtp():new( oUrl, Sites->Log )
Code: Select all
cSrvFTP := "vserver.xbaseentwickler.de"
cUrl:= "ftp://" + cSrvFTP
oUrl:= tUrl():New( cUrl )
oFTP:= TIPClientFtp():New( oUrl, .F. )
oFTP:nConnTimeout := 20000
oFTP:bUsePasv := .T.
oFTP:oUrl:cServer := cSrvFTP
oFTP:oUrl:cUserID := UserName
oFTP:oUrl:cPassword := Password
Code: Select all
oFtp:exGauge := { | done, size| any_disp_progressbar_function( INT( ( done / size ) *100 ) ) }