filecopy not run

filecopy not run

Postby Silvio.Falconi » Fri Sep 07, 2018 4:49 pm

i made
cImgPath := ".\images\"
Filecopy( lfn2sfn(rtrim(EL->ELIMGLIB)), cImgPath+cFileLib)

sometimes save the file but many times not save any files

any solution ?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7087
Joined: Thu Oct 18, 2012 7:17 pm

Re: filecopy not run

Postby ukoenig » Sat Sep 08, 2018 8:24 am

Silvio,

I'm using path-vars.
Never noticed any problem

c_path := cFilePath(GetModuleFileName( GetInstance() ) ) // Main-path
c_path1 := c_path + "IMAGES\"
c_path2 := c_path + "CAPTURES\"

oImage:LoadBmp( c_path1 + cImage )


regards
Uwe :D
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: filecopy not run

Postby Silvio.Falconi » Sat Sep 08, 2018 9:32 am

yes Uwe

my problem is another

I explain you

when an end user wants to insert an image he selects the image from his computer in any part or from his usb stick and inserts the name and image in the ELIMGLIB field of the item.dbf archive. the procedure must copy this file from the source and must save it in the folder. \ images \ which is in the root of the EXE program and then in the ELIMGLIB field it must save the new connection ie. \ images \ image.png

To copy the image file from the computer to the folder. \ Images \ I tried the filecopy () function but there are problems and last night I found in the folder fivewin (gallery) a procedure called copyfiles that seems to work better but has a 'interface with a dialog I wanted to try if you can remove this dialog and call the copying function directly but for now I can not waste time enough.
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7087
Joined: Thu Oct 18, 2012 7:17 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 13 guests