Search found 51 matches: afile

Searched query: afile

by Eroni
Wed Feb 12, 2025 1:03 pm
Forum: FiveWin for Harbour/xHarbour
Topic: FTP Best Options ?
Replies: 8
Views: 1981

Re: FTP Best Options ?

... function download()
local oInternet := TInternet():New()
local oFTP := TFTP():New( "192.168.0.230", oInternet,"remanco", "pwremanco" )
local aFiles
local handle
*----------------------------------------------------------

if ! Empty( oFTP:hFTP )

FtpSetCurrentDirectory(oFTP:hFTP, "/usr ...
by Lailton
Fri Jan 17, 2025 3:03 am
Forum: FiveWin for Harbour/xHarbour
Topic: Agent AI to document code
Replies: 5
Views: 6582

Re: Agent AI to document code

Does it works?

:shock:


agentdoc.prg
#include "FiveWin.ch"

REQUEST DBFCDX

function Main()

local aFiles := Directory( "c:\fwh\source\classes\*.prg" )
local oChat := TDeepSeek():New(), aFile
local cPrompt := "document this code, explaining what this Class is about," + ;
" listing all the ...
by Antonio Linares
Thu Jan 16, 2025 5:48 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Agent AI to document code
Replies: 5
Views: 6582

Agent AI to document code

agentdoc.prg
#include "FiveWin.ch"

REQUEST DBFCDX

function Main()

local aFiles := Directory( "c:\fwh\source\classes\*.prg" )
local oChat := TDeepSeek():New(), aFile
local cPrompt := "document this code, explaining what this Class is about," + ;
" listing all the DATAs and METHODs," + ;
" and ...
by solving
Thu Jan 25, 2024 6:02 pm
Forum: FiveWin for Harbour/xHarbour
Topic: erase files - Resolved!!
Replies: 20
Views: 3843

Re: erase files

LOCAL xPath := "C:\PDF\"

* --- Elimina File che Iniziano con CLI_...PDF
AEVAL(DIRECTORY(xPath + "CLI_*.PDF"),{|aFile|FERASE(xPath + aFile[F_NAME])} )


nel tuo comando :
cFILE := ALLTRIM( aDIR [1] )

fai un display della variabile cFILE se comprende il path completo + \ , es. c:\mydir\temp2.cdx o ...
by Antonio Linares
Thu Jul 06, 2023 11:07 am
Forum: FiveWin for Harbour/xHarbour
Topic: Copy Directory
Replies: 11
Views: 1124

Re: Copy Directory

Dear Marc,

AEval( Directory( "*.prg" ), { | aFile | CopyFile( aFile[ 1 ], "path\" + aFile[ 1 ] ) } )
by CARLOS ATUNCAR
Thu Jan 13, 2022 6:19 pm
Forum: FiveWin para Harbour/xHarbour
Topic: TFTP no reporta archivos para actualizacion de aplicacion
Replies: 4
Views: 598

TFTP no reporta archivos para actualizacion de aplicacion

... es la unica diferencia que he encontrado. este mi proceso alguna sugerencia muy agradecidos:

Function VerUpdate()
local oInternet,oFtp,oWait
local aFiles,cFile,mFile:={}
local cServer := "ftp.servidor.com"
local cUser := "user@servidor.com"
local cpassword:= "clave"
local rRuta := "/public_ftp/ruta ...
by byron.hopp
Sat Aug 10, 2019 8:15 pm
Forum: FiveWin for Harbour/xHarbour
Topic: FTP Directory Method
Replies: 6
Views: 1045

Re: FTP Directory Method

... Function TestFtpDir()
local oInternet := TInternet():New()
local oFtp := TFtp():New( "speedtest.tele2.net", oInternet,"anonymous" )
local aFiles
if !Empty( oFtp:hFTP )
aFiles := oFtp:Directory( "*.*" )
MsgInfo( Len(aFiles),"aFiles" )
AEval( aFiles, { | aFile | MsgInfo( aFile[ 4 ], aFile ...
by carlos vargas
Sat Oct 21, 2017 8:44 pm
Forum: FiveWin para Harbour/xHarbour
Topic: funciones de FWH y Harbour en un archivo .txt
Replies: 7
Views: 6961

Re: funciones de FWH y Harbour en un archivo .txt

... cString>,<nValue>,[<nPos>])->cNewString
AddMonth(<dDate>,<nMonths>)->dNewDate
ADel(<aArray>,<nElement>,[<lShrink>])->aTarget
ADir([<cFileSpec>],[<aFilenames>],[<aSizes>],[<aDates>],[<aTimes>],[<aAttributes>])->nFiles
ADSBlob2File(cFileName,cFieldName)->lSuccess
ADSClearAOF()->Nil
ADSCustomizeAOF ...
by Enrico Maria Giordano
Thu Feb 16, 2017 5:21 pm
Forum: FiveWin for Harbour/xHarbour
Topic: DEFINE MAIL How many attach files?
Replies: 6
Views: 1401

Re: DEFINE MAIL How many attach files?

Each attachment has to be an array of two items:

AADD( aFile, { "fullpath and filename", "filename only" } )

EMG
by James Bott
Wed Jul 27, 2016 3:50 pm
Forum: FiveWin for Harbour/xHarbour
Topic: ADORDD FAQs
Replies: 87
Views: 25092

Re: ADORDD FAQs

... The error message you posted before is occurring in the second line here (6394 in ADORDD.PRG):

if lOverWrite
hb_adoRddDrop( oCn, cBaseDir + aFile[ F_NAME ], , , DBEngine ) // erroring here
endif

But since you are passing .f. for lOverwrite, that line is not being executed, so it must be ...
by Compuin
Mon May 02, 2016 2:16 pm
Forum: FiveWin para Harbour/xHarbour
Topic: Forma correcta de configurar clase TSBUTTON...alguna ayuda?
Replies: 14
Views: 4672

Re: Forma correcta de configurar clase TSBUTTON...alguna ayuda?

... TSBUTTON.PRG'...
.\prg\TSBUTTON.PRG(166) Error E0019 #error: 'Class "TSButton" not declared for
method: New( nTop, nLeft, cPrompt, oWnd, aResource, aFile, aSize, lPixel, bActio
n, bWhen, bValid, lDefault, oFont, cMsg, cToolTip, nHelpId, cBorder, lCancel, l
Adjust, aColors, nCaptPos, lOpaque, oPBrush ...
by ukoenig
Fri Apr 22, 2016 8:01 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Function to download a defined file from a homepage ?
Replies: 31
Views: 16849

Re: Function to download a defined file from a homepage ?

... GalleryIcopyfil/Icopyfil.prg >
I reached this point : serverconnection, but the copyprocess doesn't start.

I listed the homepage-directory :

aFiles = oFTP:Directory( "*.*" ) // , "D" )
AEval( aFiles, { | aFile | MsgInfo( aFile[ 1 ], aFile[ 3 ] ) } )

results :
------------------
.
..
Firma ...
by anserkk
Tue Dec 15, 2015 4:14 am
Forum: FiveWin for Harbour/xHarbour
Topic: Download file via html5
Replies: 9
Views: 1703

Re: Download file via html5

... oInternet := tInternet&#40;&#41;:New&#40;&#41;oFtp &nbsp; &nbsp; &nbsp;:= tFtp&#40;&#41;:New&#40;cIp,oInternet,cFtpUserName,cFtpPassword&#41; aFiles:=oFtp:Directory&#40;cFolderName+"\"*.* )

Display the contents of the aFile to the user to choose the required file and then download it. Just an ...
by jnavas
Mon Mar 09, 2015 1:23 am
Forum: FiveWin para Harbour/xHarbour
Topic: Almacenar/Recuperar imagenes, binarios en Tablas DBF
Replies: 12
Views: 6263

Almacenar/Recuperar imagenes, binarios en Tablas DBF

... MAIN(cFile)
LOCAL aPag
LOCAL cBin :=Lower(GetModuleFileName( GetInstance() ))
LOCAL cFileDir:="FILES.DBF"
LOCAL cFilePag:="FILESPAG.DBF"
LOCAL aFile,I

DEFAULT cFile:=cBin

SET DELETE ON

IF !FILE(cFile)
MsgAlert("Archivo "+cFile+" no Existe")
RETURN NIL
ENDIF

ISTABLAS(cFileDir,cFilePag ...
by LuisPonce
Sat Apr 13, 2013 4:02 am
Forum: FiveWin para Harbour/xHarbour
Topic: ERROR EN TESTUZIP.PRG
Replies: 6
Views: 1306

Re: ERROR EN TESTUZIP.PRG

Karinha,

Checa estas funciones, a mi me funcionan!!

STATIC FUNCTION Comprime(cFile,aFile)
LOCAL oDlg,oMeter,oText,cMsg,nLen,lVal,nActual:=0
nLen:=Len(aFile)
DEFINE DIALOG oDlg FROM 1, 1 TO 10, 60 TITLE "Espere, reuniendo archivos..."
@ 0.5, 2 SAY oText VAR cMsg SIZE 180, 20 OF oDlg
@ 2, 2 METER ...