Search found 40 matches

by gonpublic2k
Tue Nov 26, 2019 1:31 pm
Forum: Coding Questions
Topic: CopyFileEx API call
Replies: 53
Views: 13153

Re: CopyFileEx API call

Hello all,

Hi @Marc56us, any other updates to this that we need to know of? :)
by gonpublic2k
Thu Nov 21, 2019 7:26 pm
Forum: Coding Questions
Topic: CopyFileEx API call
Replies: 53
Views: 13153

Re: CopyFileEx API call

[ERROR] ReadProgramError(): invalid value specified for parameter " Flags ".
...Have you compared with the possible values given in the help on ReadProgramError() ?
... ...yes, it only takes two parameters as especified in the code written by infratec. I'm glad it's working now, but in general, you ...
by gonpublic2k
Thu Nov 21, 2019 4:21 pm
Forum: Coding Questions
Topic: CopyFileEx API call
Replies: 53
Views: 13153

Re: CopyFileEx API call


[ERROR] ReadProgramError(): invalid value specified for parameter "Flags".
Have you compared with the possible values given in the help on ReadProgramError() ?

:wink:

yes, it only takes two parameters as especified in the code written by infratec.

ReadProgramError(Program[,Format ...
by gonpublic2k
Thu Nov 21, 2019 4:07 pm
Forum: Coding Questions
Topic: CopyFileEx API call
Replies: 53
Views: 13153

Re: CopyFileEx API call


[ERROR] ReadProgramError(): invalid value specified for parameter "Flags".
Have you compared with the possible values given in the help on ReadProgramError() ?

:wink:

yes, it only takes two parameters as especified in the code written by infratec.

ReadProgramError(Program[,Format ...
by gonpublic2k
Thu Nov 21, 2019 2:46 pm
Forum: Coding Questions
Topic: CopyFileEx API call
Replies: 53
Views: 13153

Re: CopyFileEx API call

And you have to copy my include stuff again, because I modified it a bit.
The character modes were not correct handled.



Show me the part I need to correct in ExternalProgram.pbi - I can't find the updated
version that you said you changed. I tested your code and it gave me an error.

[ERROR ...
by gonpublic2k
Thu Nov 21, 2019 1:47 pm
Forum: Coding Questions
Topic: CopyFileEx API call
Replies: 53
Views: 13153

Re: CopyFileEx API call

Understood. Thanks for the correction, I'll play with the modified version. Although now I'm taking a look into the
skeleton that Marcus provided. Did you take a look a it? It's more or less what I was trying to accomplish, it's a
great base to work on and develop it to be a great application. I ...
by gonpublic2k
Wed Nov 20, 2019 6:57 pm
Forum: Coding Questions
Topic: CopyFileEx API call
Replies: 53
Views: 13153

Re: CopyFileEx API call

Very aerated clean for readability.

Use CTRL+A followed by CTRL+I often, this restores indentation and allows you to quickly see nesting errors or loops that are not properly closed.

There is still work to be done:
- Check boxes or options for the user
- Check the parameters
- Create a log file ...
by gonpublic2k
Wed Nov 20, 2019 4:08 pm
Forum: Coding Questions
Topic: CopyFileEx API call
Replies: 53
Views: 13153

Re: CopyFileEx API call

Awesome!!!!

Thanks!!!!!! :D :D :D :D :D
by gonpublic2k
Wed Nov 20, 2019 2:44 pm
Forum: Coding Questions
Topic: CopyFileEx API call
Replies: 53
Views: 13153

Re: CopyFileEx API call

Marc56us

Wow!! Simply incredible! I appreciate this so much, looks very interesting, I'm going to follow your advice and try to implement
the 'RUN' procedure to include the parameters for the copy of files. This is really a great piece of code, I can't thank you enough
for this!!!

:D
by gonpublic2k
Wed Nov 20, 2019 2:26 pm
Forum: Coding Questions
Topic: CopyFileEx API call
Replies: 53
Views: 13153

Re: CopyFileEx API call

https://www.purebasic.fr/english/viewtopic.php?p=482009#p482009


Hello once again! Following your code skeleton, I tried running the project with the example and adapting it
to ROBOCOPY. I'm not sure if it's an error somewhere but it doesn't display anything, it simply starts and
really quickly ...
by gonpublic2k
Tue Nov 19, 2019 5:20 pm
Forum: Coding Questions
Topic: CopyFileEx API call
Replies: 53
Views: 13153

Re: CopyFileEx API call

If you want to program window programs,
you have to understand how they work.

They are event driven.
Each things generates events which have to be handled,

For that you have ONE event loop in your program.
While this loop is running you get everything refreshed and updated.

If not, then you will ...
by gonpublic2k
Tue Nov 19, 2019 3:56 pm
Forum: Coding Questions
Topic: CopyFileEx API call
Replies: 53
Views: 13153

Re: CopyFileEx API call

1. Start by using Robocopy without threads (remove /MT:32)
2. Avoid using APIs when an equivalent function exists in the language
UpdateWindow_(GadgetID(0)) :arrow: While WindowEvent : Wend
3. Removes the display of the percentage of progress (Add /NP)
4. Duplicates the output to a log file ...
by gonpublic2k
Tue Nov 19, 2019 3:33 pm
Forum: Coding Questions
Topic: CopyFileEx API call
Replies: 53
Views: 13153

Re: CopyFileEx API call

1. Start by using Robocopy without threads (remove /MT:32)
2. Avoid using APIs when an equivalent function exists in the language
UpdateWindow_(GadgetID(0)) :arrow: While WindowEvent : Wend
3. Removes the display of the percentage of progress (Add /NP)
4. Duplicates the output to a log file ...
by gonpublic2k
Tue Nov 19, 2019 2:53 pm
Forum: Coding Questions
Topic: CopyFileEx API call
Replies: 53
Views: 13153

Re: CopyFileEx API call

By doing a first simulation run, Robocopy displays the number of files that will be copied, updated or deleted.
Like this:
Total Copied Skipped Mismatch FAILED Extras
Dirs : 373 0 373 0 0 10
Files : 3223 10 3213 0 0 126 Simply uses this value as the final value of the progress bar.

To simulate ...
by gonpublic2k
Tue Nov 19, 2019 2:27 pm
Forum: Coding Questions
Topic: CopyFileEx API call
Replies: 53
Views: 13153

Re: CopyFileEx API call

It's great that you want do it yourself to learn rather than using a ready-made product.
So we're not going to do it for you, but give you the method.

A good point is to make a progressbar and to do it, you musk know how many files need to be treated
To make a progress bar, you make a first pass ...