Welcome! Log In Create A New Profile

Advanced

[WD23] - Copy an internal file

Posted by JP 
JP
[WD23] - Copy an internal file
October 09, 2018 11:36AM
Hi All

Is there a way to include a TXT file in a project and then be able to copy that file to a folder on the users machine when they run my program? I want to include a EULA file in the project which I can update from time to time.
Re: [WD23] - Copy an internal file
October 09, 2018 01:12PM
Hi JP

if you are using the built in installer, the re is a step for a license file that does exactly that

Best regards

Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

Free Video Courses, free WXShowroom.com, open source WXReplication, open
source WXEDM.

More information on [www.fabriceharari.com]
JP
Re: [WD23] - Copy an internal file
October 09, 2018 01:35PM
Fabrice

No, want/need to do this from inside my project/running exe. Any way to do that?
Re: [WD23] - Copy an internal file
October 09, 2018 03:32PM
Hi again,

yes you can...

You just need to add the file in the library (there is an option button for that when compiling) and then use fExtractResource when you want to read it/write it on disk: [doc.pcsoft.fr]

Best regards

Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

Free Video Courses, free WXShowroom.com, open source WXReplication, open
source WXEDM.

More information on [www.fabriceharari.com]
JP
Re: [WD23] - Copy an internal file
October 09, 2018 08:14PM
Fabrice

Thanks, got that working.

Cheers
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: