Hi @Marc56us, any other updates to this that we need to know of?
Search found 40 matches
- Tue Nov 26, 2019 1:31 pm
- Forum: Coding Questions
- Topic: CopyFileEx API call
- Replies: 53
- Views: 13528
Re: CopyFileEx API call
Hello all,
Hi @Marc56us, any other updates to this that we need to know of?
Hi @Marc56us, any other updates to this that we need to know of?
- Thu Nov 21, 2019 7:26 pm
- Forum: Coding Questions
- Topic: CopyFileEx API call
- Replies: 53
- Views: 13528
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 ...
...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 ...
- Thu Nov 21, 2019 4:21 pm
- Forum: Coding Questions
- Topic: CopyFileEx API call
- Replies: 53
- Views: 13528
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 ...
- Thu Nov 21, 2019 4:07 pm
- Forum: Coding Questions
- Topic: CopyFileEx API call
- Replies: 53
- Views: 13528
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 ...
- Thu Nov 21, 2019 2:46 pm
- Forum: Coding Questions
- Topic: CopyFileEx API call
- Replies: 53
- Views: 13528
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 ...
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 ...
- Thu Nov 21, 2019 1:47 pm
- Forum: Coding Questions
- Topic: CopyFileEx API call
- Replies: 53
- Views: 13528
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 ...
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 ...
- Wed Nov 20, 2019 6:57 pm
- Forum: Coding Questions
- Topic: CopyFileEx API call
- Replies: 53
- Views: 13528
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 ...
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 ...
- Wed Nov 20, 2019 4:08 pm
- Forum: Coding Questions
- Topic: CopyFileEx API call
- Replies: 53
- Views: 13528
Re: CopyFileEx API call
Awesome!!!!
Thanks!!!!!!

Thanks!!!!!!
- Wed Nov 20, 2019 2:44 pm
- Forum: Coding Questions
- Topic: CopyFileEx API call
- Replies: 53
- Views: 13528
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!!!

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!!!
- Wed Nov 20, 2019 2:26 pm
- Forum: Coding Questions
- Topic: CopyFileEx API call
- Replies: 53
- Views: 13528
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 ...
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 ...
- Tue Nov 19, 2019 5:20 pm
- Forum: Coding Questions
- Topic: CopyFileEx API call
- Replies: 53
- Views: 13528
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 ...
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 ...
- Tue Nov 19, 2019 3:56 pm
- Forum: Coding Questions
- Topic: CopyFileEx API call
- Replies: 53
- Views: 13528
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 ...
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 ...
- Tue Nov 19, 2019 3:33 pm
- Forum: Coding Questions
- Topic: CopyFileEx API call
- Replies: 53
- Views: 13528
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 ...
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 ...
- Tue Nov 19, 2019 2:53 pm
- Forum: Coding Questions
- Topic: CopyFileEx API call
- Replies: 53
- Views: 13528
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 ...
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 ...
- Tue Nov 19, 2019 2:27 pm
- Forum: Coding Questions
- Topic: CopyFileEx API call
- Replies: 53
- Views: 13528
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 ...
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 ...