Search found 212 matches: ferase

Return to advanced search

Re: erase files

... Cancella_Archivi(cDir) local adir := DIRECTORY(cDir+ "*.*" ) local i,cFile FOR i = 1 to LEN( aDir ) cFILE := ALLTRIM( aDIR[i][1] ) IF FErase(cDir+cFile ) != 0 Msginfo( FERROR() ,cfile) endif NEXT return nil
by Silvio.Falconi
Fri Jan 26, 2024 11:13 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: erase files - Resolved!!
Replies: 20
Views: 1543

Re: erase files

... il parametro "D" allora devi controllare il contenuto dell'array IF cFile <> "." .OR. cFile <> ".." IF FErase(cDir+cFile ) != 0 ? FERROR() ENDIF ENDIF consiglio 1 : senza parametro "D" consiglio 2 : metti il path -> cDir + cFile
by solving
Fri Jan 26, 2024 10:42 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: erase files - Resolved!!
Replies: 20
Views: 1543

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[i][1] ) fai un display della variabile cFILE se comprende il path completo + \ ...
by solving
Thu Jan 25, 2024 6:02 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: erase files - Resolved!!
Replies: 20
Views: 1543

Re: erase files

carlos vargas wrote:Recordar que existe una función llamada hb_dbdrop la cual elimina la tabla y sus archivos de índices y memo fil asociados.

gracias, tienes las características y parámetros de esta función? sin embargo ahora parece estar bien con "ferase"
by Silvio.Falconi
Wed Jan 24, 2024 7:04 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: erase files - Resolved!!
Replies: 20
Views: 1543

Re: erase files

The command ERASE <cfile> is preprocessed as FERASE( <cfile> ). This command or function should work (and it works for me) if the file exists and is not in use and can be deleted. If the ERASE command does not really erase an existing ...
by nageswaragunupudi
Wed Jan 24, 2024 2:44 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: erase files - Resolved!!
Replies: 20
Views: 1543

Re: Function Hb_DirExists() no permite File() ubique los archivo

... LOCAL cFileName LOCAL nFileHandle nFileHandle := HB_fTempCreate(cDir, NIL, FC_NORMAL, @cFileName) IF nFileHandle != F_ERROR fClose(nFileHandle) fErase(cFileName) RETURN .T. ENDIF RETURN .F.
by CARLOS ATUNCAR
Thu Nov 02, 2023 3:45 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Function Hb_DirExists() no permite File() ubique los archivo
Replies: 14
Views: 702

Re: No borrar fichero

Hola,

Entiendo q quieres borrar el fichero para q no se quede por alli una vez cierres el visor. O creas un hilo q este pendiente o despues de abrir puedes hacer algo como

While fErase(cFile) = -1
Syswait(1)
End

No lo he probado. Este paso te congela la aplicacion, claro

C.
by Carles
Fri Oct 20, 2023 7:17 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: No borrar fichero (SOLUCIONADO)
Replies: 12
Views: 478

Re: No borrar fichero

sugiero lo que comenta Joao
al cerrar o salir de los sistemas
aFicheros := directory( ".\tmp\*.*" )
for i := 1 to len(aFicheros)
ferase( '.\tmp\'+aFicheros[i][1] )
next
by sysctrl2
Fri Oct 20, 2023 7:09 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: No borrar fichero (SOLUCIONADO)
Replies: 12
Views: 478

XML, CON ARCHIVO ADJUNTO PDF

... largo:=pdfend-pdfin resp:=substr(response,pdfin,largo+4) cFilename:="texto.pdf" * Grabo el Archivo PDF ferase(cfilename) oText:= TTxtFile():New( cfilename ) if oText:Open() oText:add(alltrim(resp)) endif oText:close()
by elmoiquique
Thu Sep 28, 2023 10:01 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: XML, CON ARCHIVO ADJUNTO PDF
Replies: 35
Views: 2290

Re: dbfntx very slow with 2+ users

... a "Local Cache" which can made Problem when use "Local" Action this is e.g. with "temporary" Action like INDEX ON or FERASE(localfile) btw. Question : does FiveWin "lock" Index like Xbase++ do :?: read here what is recommend for SMB2 when work with "temporary" ...
by Jimmy
Thu Mar 31, 2022 3:42 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: dbfntx very slow with 2+ users
Replies: 41
Views: 6815

Re: clearing of archives

hi,

i do create DBF / Index if not exist ...

you can open a DBF EXCLUSIVE when NO User is Connect ... than you can Ferase() it
to find out "who" is Connect to DBF is another Question
by Jimmy
Fri Jan 21, 2022 6:57 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: clearing of archives
Replies: 5
Views: 303

Re: HBSSL CON FUNCIONES DE DIEGO FAZIO INCLUIDAS

... CMS','al cerrar la data del objeto CMS','al crear el Archivo de Salida',; 'en la generación final del archivo CMS' } If File( cPath+'TA.xml') Ferase( cPath+'TA.xml') Ferase( cPath+'TRA.tmp') Ferase( cPath+'TRA.xml') End * Grabo el nuevo numero de ID EscribeIni( 'FactElec','ID', nId ) * Armo ...
by dhf27
Tue Sep 28, 2021 12:24 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: HBSSL CON FUNCIONES DE DIEGO FAZIO INCLUIDAS
Replies: 43
Views: 4989

Re: HBSSL CON FUNCIONES DE DIEGO FAZIO INCLUIDAS

... CMS','al cerrar la data del objeto CMS','al crear el Archivo de Salida',; 'en la generación final del archivo CMS' } If File( cPath+'TA.xml') Ferase( cPath+'TA.xml') Ferase( cPath+'TRA.tmp') Ferase( cPath+'TRA.xml') End * Grabo el nuevo numero de ID EscribeIni( 'FactElec','ID', nId ) * Armo ...
by rterraz
Thu Sep 23, 2021 1:39 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: HBSSL CON FUNCIONES DE DIEGO FAZIO INCLUIDAS
Replies: 43
Views: 4989

Re: HBSSL CON FUNCIONES DE DIEGO FAZIO INCLUIDAS

... Incluye el Archivo Original en la Salida cBat := '' cBat += 'path ' + cPathOpenSsl + CRLF cBat += cCmdSign + CRLF if( file(cPath+'FirmoXML.bat'),ferase(cPath+'FirmoXML.bat'),nil) MemoWrit( cPath+'FirmoXML.bat', cBat ) * ssl_ini() * nError := HB_CMS_SignFile('TRA.XML', cCert, cPrivateKey,'TRA.TMP' ...
by rterraz
Sat Sep 18, 2021 1:15 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: HBSSL CON FUNCIONES DE DIEGO FAZIO INCLUIDAS
Replies: 43
Views: 4989

Re: TDatabase Class

... IF NETUSE( xVol+"\DBTMP\"+CustDbf+".DBF", .T.,5) Index on CustName TAG CustName Set Order to Tag CustName ELSE CLOSE DATABASES FERASE( xVol+"\DBTMP\"+CustDbf+".DBF") FERASE( xVol+"\DBTMP\"+CUSTDBF+".CDX") oDlg:END() RETURN(NIL) ENDIF Select ...
by Rick Lipkin
Wed May 19, 2021 5:10 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: TDatabase Class
Replies: 18
Views: 2077
Next

Return to advanced search