Search found 218 matches: ferase

Return to advanced search

Re: delete a file

SIlvo

Are you sure cFile contains the full path of the file you wish to delete ... cfile := "c:\mydata\main.exe" the ferase( cFIle ) should work.

Rick Lipkin
by Rick Lipkin
Thu Oct 31, 2024 2:25 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: delete a file
Replies: 6
Views: 390

delete a file

I t ried with FERASE( cFile ) or DELETEFILE( cFile ) with no success!!!

How I can resolve ?
by Silvio.Falconi
Thu Oct 31, 2024 1:10 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: delete a file
Replies: 6
Views: 390

HB_ZipFile - Password problem - SOLVED

... function main() local aFiles:={}, cFilZip AADD(aFiles, "c:\fwh\samples\testdlg.prg") cFilZip := "c:\fwh\samples\test.zip" ferase(cFilZip) lOK := HB_ZipFile( cFilZip, aFiles, 9,,,'695',.F. ) //695 is a password ? lOK return
by MGA
Mon Sep 30, 2024 11:46 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: HB_ZipFile - Password problem - SOLVED
Replies: 22
Views: 1521

EZTexting Send Message

... := 0 Local oHttp := CreateObject( "MSXML2.XmlHttp" ) Local cLogFile := Mcs_AppPath() + "JSONSend.txt" If File( cLogFile ) Ferase( cLogFile ) Endif Begin Sequence oParms["message" ] := "Test Text from the EZ Texting API." oParms["PhoneNumbers"] ...
by byron.hopp
Tue Jul 02, 2024 7:18 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: EZTexting Send Message
Replies: 8
Views: 838

Re: ayuda para configurar entorno FWH2404 de 64 bits

no salia con los archivos cambiando de .a a .lib Proyecto: formatos, Entorno: fwh2404.64bcc77: [1]:harbour.Exe Source\menu.prg /m /n0 /gc1 /es2 /a /iE:\Tools64\Bcc7.7\include;E:\Tools64\Fwh2404\include;E:\Tools64\xharbour_bcc77\include /iE:\Tools64\xharbour_bcc77\Include /iE:\Tools64\Fwh2404\include...
by CARLOS ATUNCAR
Sat Jun 08, 2024 5:43 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: ayuda para configurar entorno FWH2404 de 64 bits
Replies: 24
Views: 2311

Re: Ayuda con DLL

... DELETED ON SET AUTOPEN ON SET FIXED ON SET AUTORDER TO 1 SET DEFAULT TO &RutaDat SetHandleCount(200) CDX1:=RutaDat+"\VENTAS44.CDX" FERASE("&CDX1") IF !FILE("VTAFUS.DBF") Vec1:={} AADD(Vec1, {"FECHA ", "D", 8, 0}) AADD(Vec1, {"HORA ...
by Jorge Jaurena
Tue Jun 04, 2024 2:18 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ayuda con DLL
Replies: 8
Views: 675

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: 3057

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: 3057

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: 3057

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: 3057

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: 3057

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: 1635

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: 1334

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: 1334

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: 40
Views: 8543
Next

Return to advanced search

cron