Search found 41 matches: ferror

Return to advanced search

Error 32 al querer renombrarse un achivo

Hola.
Cuando quiero usar la función Frename() no me deja renombrar el archivo y me tira un -1, mirando con el FError() me tira el numero 32
que significa? como puedo solucionarlo?

gracias.
by goosfancito
Wed Mar 06, 2024 6:58 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Error 32 al querer renombrarse un achivo
Replies: 7
Views: 288

Re: erase files

... := 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: 1541

Re: erase files

... 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: 1541

Re: erase files

Ho messo un trace msginfo(ferror,cfile)
Tutti e due i messaggi viene visualizzato l'errore 5 , il primo mi dà "." e il secondo ".." è sta cosa che non ho capito.
by Silvio.Falconi
Thu Jan 25, 2024 6:09 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: erase files - Resolved!!
Replies: 20
Views: 1541

Re: erase files

In the context of Clipper and Harbour programming, the DOS error code 5, as returned by the FERROR() function, indicates "Access denied"​​. This error typically occurs when a program attempts to access a file or directory for which it does not have the necessary ...
by Silvio.Falconi
Thu Jan 25, 2024 10:48 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: erase files - Resolved!!
Replies: 20
Views: 1541

Re: erase files

In the context of Clipper and Harbour programming, the DOS error code 5, as returned by the FERROR() function, indicates "Access denied"​​. This error typically occurs when a program attempts to access a file or directory for which it does not have the necessary ...
by Otto
Thu Jan 25, 2024 9:12 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: erase files - Resolved!!
Replies: 20
Views: 1541

Re: erase files

...   FOR i = 1 to LEN( aDir )                    cFILE := ALLTRIM( aDIR[i][1] )                    IF FErase(cDir+cFile ) != 0                     ? FERROR()                     endif              NEXT     return nil Erased only some files ( 2 not) and the "?Ferror" give me this https://i.postimg.cc/j2JWCZs1/ff.png
by Silvio.Falconi
Thu Jan 25, 2024 8:51 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: erase files - Resolved!!
Replies: 20
Views: 1541

Re: erase files

... file is in use by some application or some other reason. The best way to find out the reason is to if FERASE( cFile ) != 0   ? FERROR()endif FError() tells you the reason why the file is not erased
by nageswaragunupudi
Wed Jan 24, 2024 2:44 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: erase files - Resolved!!
Replies: 20
Views: 1541

Re: Previously opened Excel / Word files.

simply try to open in exclusive mode before
#include "FileIO.ch"

FUNCTION MAIN( cFile )
LOCAL nHandle

nHandle := FOPEN( cFile , FO_EXCLUSIVE )
IF nHandle = -1
? "Error" , FERROR()
ELSE
? "nHandle" , nHandle
FCLOSE( nHandle )
ENDIF

RETURN NIL
by MarcoBoschi
Thu Jan 14, 2021 12:53 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Previously opened Excel / Word files.
Replies: 2
Views: 421

Re: FWH 18.08: Enhancements to strings.prg

... * be even duplicated. * * In an HIT, this is not allowed. * * The untranslated entry will be an empty string. * * On failure, NIL is returned. IF Ferror() is not 0, you can suppose that * an hardware failure happened, else you can suppose that the file is * malformed. * * * HB_I18NSaveTable( cFileName| ...
by carlos vargas
Tue Nov 13, 2018 7:54 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: FWH 18.10: Enhancements to strings.prg
Replies: 19
Views: 5425

Descarga de Archivos

... correctamente, escribo el ejemplo: cDestino:="c:\archivos\archivo.rtf" cFile:="archivo.rtf" nHandle:=FCreate(cDestino) IF !FError() # 0 FWrite(nHandle,cFile,len(cFile)) FClose(nHandle) *ACÁ COMPARO SI EL TAMAÑO ORIGINAL ES EL MISMO DEL DESCARGADO y me descarga siempre 64k... ...
by TOTOVIOTTI
Mon May 14, 2018 5:02 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Descarga de Archivos
Replies: 5
Views: 908

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

... FClose(<nHandle>)->lError FCount()->nFields FCreate(<cFile,[<nAttibute>])->nHandle FErase(<cFile>)->nSuccess FError()->nErrorCode Field(<nPosition>)->cFieldName FieldBlock(<cFieldName>)->bFieldBlock FieldDec(<nFieldPos>)->nDecimalPlaces ...
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: 5709

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

... Eof EoM EoQ EoY Error ErrorBlock ErrorLevel ErrorNew ErrorSys Eval ExeName Exp Expand Exponent Fact Fahrenheit FClose FCount FCreate FErase FError Field FieldBlock FieldDec FieldDeci FieldGet FieldGetArr FieldLen FieldName FieldNum FieldPos FieldPos FieldPut FieldPutArr FieldSize FieldType ...
by carlos vargas
Sat Oct 21, 2017 8:43 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: funciones de FWH y Harbour en un archivo .txt
Replies: 7
Views: 5709

Re: C++Compiler - FREE TOOL

... -I%C_INC_INSTALL%\dinkumware64%CRLF% -I%C_INC_INSTALL%\windows\crtl%CRLF% -I%C_INC_INSTALL%\windows\sdk%CRLF% -O2%CRLF% -ferror-limit 50 -fmessage-length 126 -fno-use-cxa-atexit%CRLF% -fborland-extensions -std=c++11 -fcxx-exceptions -fexceptions -fseh %CRLF% -fdiagnostics-show-option%CRLF% ...
by mastintin
Tue Jul 26, 2016 6:47 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: C++Compiler - FREE TOOL
Replies: 18
Views: 8580

Re: C++Compiler - FREE TOOL

... -I%C_INC_INSTALL% -I%C_INC_INSTALL%\windows\crtl -I%C_INC_INSTALL%\dinkumware64 -I%C_INC_INSTALL%\windows\crtl -I%C_INC_INSTALL%\windows\sdk -O2 -ferror-limit 50 -fmessage-length 126 -fno-use-cxa-atexit -fborland-extensions -std=c++11 -fcxx-exceptions -fexceptions -fseh -fdiagnostics-show-option ...
by mastintin
Mon Jul 25, 2016 4:50 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: C++Compiler - FREE TOOL
Replies: 18
Views: 8580
Next

Return to advanced search