FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour rename and erase a file from fwh
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
rename and erase a file from fwh
Posted: Sat Jun 11, 2016 11:49 AM

How I can rename a file from fwh ?
..and how I can erase a file ?

Wich is the commands ?

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: rename and erase a file from fwh
Posted: Sat Jun 11, 2016 12:15 PM

Search FRename and FErase

Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo

El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: rename and erase a file from fwh
Posted: Sat Jun 11, 2016 01:57 PM

sorry I tried all this morning with
FRENAME( oldname, cFolderAllegati+cRecord+"--"+cnewname ) with no success

then I saw i made a mistake

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 80
Joined: Tue Mar 25, 2008 09:03 PM
Re: rename and erase a file from fwh
Posted: Sat Jun 11, 2016 05:35 PM

Prova ...
cFile = cperete+"\menu.exe" // prog. su server
cfile0 = "menu.exe" // prog. su client
cfile1 = "menu1.exe"

DELETEFILE(CFILE1)
MOVEFILE(CFILE0,CFILE1)
COPYFILE(CFILE,CFILE0)

Saluti
Stefano

FWH 14.11 + xHarbour + bcc582

Continue the discussion