copyto w/o the stats

Discuss and share scripts and script files...
Post Reply
MBaas
Posts: 626
Joined: 15 Feb 2016 21:08

copyto w/o the stats

Post by MBaas »

I have a script that copies files using copyto. After the copy it usually shows the stats:
23-04-2025_13-22-52.png
23-04-2025_13-22-52.png (20.45 KiB) Viewed 290 times
If I understood the doc correctly, [pop_stats] should help to suppree that dialog, so I was hoping

Code: Select all

copyto $tp , $f , 9:=0; 
would do it _ but I still get those stats.

I think my counting is correct

Code: Select all

copyto [location], [source], [rootpath], [flags], [autorichop], [on_collision], [preserve_dates], [create_log], [pop_stats], [skip_junctions], [verify], [show_progress]
                 1               2            3              4            5                   6                       7                        8                   9                  10                 11                                                                       
so I don't understand why it still shows it...

Any ideas, anyone?
______________________________________________
Happy user ;-)

highend
Posts: 14105
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: copyto w/o the stats

Post by highend »

Counting args starts with 0, not 1...
One of my scripts helped you out? Please donate via Paypal

MBaas
Posts: 626
Joined: 15 Feb 2016 21:08

Re: copyto w/o the stats

Post by MBaas »

Ouch! :oops: Thanks!

So I changed to

Code: Select all

copyto $tp , $f , 8:=0;
- but it still shows the stats! ???
______________________________________________
Happy user ;-)

highend
Posts: 14105
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: copyto w/o the stats

Post by highend »

Not here...
One of my scripts helped you out? Please donate via Paypal

MBaas
Posts: 626
Joined: 15 Feb 2016 21:08

Re: copyto w/o the stats

Post by MBaas »

Hmm, but that line of code was directly taken from the .xys, no edits. Maybe it's a side-effect of other things I'm doing in that script?

But the only candidate for that could be

Code: Select all

setting "BackgroundFileOps", 0;
, I think (the other stuff that script is doing is bit of filename processing with gettoken and old files are deleted with delete.
______________________________________________
Happy user ;-)

jupe
Posts: 3192
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: copyto w/o the stats

Post by jupe »

Are you by chance using the tB version?, because I think this is a known issue in it that hasn't been resolved yet.

MBaas
Posts: 626
Joined: 15 Feb 2016 21:08

Re: copyto w/o the stats

Post by MBaas »

Thanks - that's it! I am mainly running TB since it already is so good, so I forgot the possibility it might due to that :oops:
______________________________________________
Happy user ;-)

admin
Site Admin
Posts: 63399
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: copyto w/o the stats

Post by admin »

jupe wrote: 23 Apr 2025 22:29 Are you by chance using the tB version?, because I think this is a known issue in it that hasn't been resolved yet.
The issue is that any non-default settings are not honored by the background copy process?

MBaas
Posts: 626
Joined: 15 Feb 2016 21:08

Re: copyto w/o the stats

Post by MBaas »

Well, to be exact, the issue is that the specific setting is provided in the call's arguments is not considered. And the default for custom copy is also set to not show the summary report.
24-04-2025_14-13-29.png
24-04-2025_14-13-29.png (102.5 KiB) Viewed 194 times
______________________________________________
Happy user ;-)

admin
Site Admin
Posts: 63399
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: copyto w/o the stats

Post by admin »

So only scripted operations are affected?

MBaas
Posts: 626
Joined: 15 Feb 2016 21:08

Re: copyto w/o the stats

Post by MBaas »

yes, I think so.
______________________________________________
Happy user ;-)

jupe
Posts: 3192
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: copyto w/o the stats

Post by jupe »

admin wrote: 24 Apr 2025 10:18 The issue is that any non-default settings are not honored by the background copy process?
I haven't investigated myself, but based on user feedback, copyto\moveto\backupto\sync all seem to keep the custom copy dialog open after file operation, and it doesn't seem to matter if its BJ or not, and it doesn't seem limited just to scripting. A couple examples,

viewtopic.php?p=228325#p228325
viewtopic.php?p=228095#p228095

jupe
Posts: 3192
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: copyto w/o the stats

Post by jupe »

It looks like this issue should now be fixed in XY tB .0307 if you wanted to test.

MBaas
Posts: 626
Joined: 15 Feb 2016 21:08

Re: copyto w/o the stats

Post by MBaas »

Yes, it is! :appl:
______________________________________________
Happy user ;-)

Post Reply