topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Monday October 25, 2021, 6:42 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: copy two files from one folder to many folders  (Read 1240 times)

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,729
    • View Profile
    • Donate to Member
copy two files from one folder to many folders
« on: September 23, 2021, 02:55 PM »
I have a tree
Y:\folder1\folder2\exp<year>\compo\file1.doc
Y:\folder1\folder2\exp<year>\compo\file2.doc

I need to copy two files from folder
Y:\folder1\folder2\564.21\compo\file1.doc
Y:\folder1\folder2\564.21\compo\file2.doc

to many folders under the same tree
Y:\folder1\folder2\exp<year>

An utility to do this or similar tasks ?

Best Regards
 :-* :P

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,729
    • View Profile
    • Donate to Member
Re: copy two files from one folder to many folders
« Reply #1 on: September 23, 2021, 02:59 PM »
Additionally I need to copy those two files only if the COMPO folder is not empty...
 :huh:

publicdomain

  • Honorary Member
  • Joined in 2019
  • **
  • Posts: 323
  • Call me Vic!
    • View Profile
    • PublicDomainWeekly.com
    • Read more about this member.
    • Donate to Member
Re: copy two files from one folder to many folders
« Reply #2 on: September 23, 2021, 03:30 PM »
An utility to do this or similar tasks ?

You can try MultiCopy v0.1.0

https://github.com/p...blicdomain/multicopy

https://github.com/p.../releases/tag/v0.1.0

If you need something else added (i.e. another feature), I'm in to assist :Thmbsup:

Cheers!
✔️ New releases: PublicDomainWeekly.com

🎁 One-time support: Paypal @ www.paypal.com/paypalme/victorvls

❤️ Steady support: Patreon @ www.patreon.com/publicdomain

Thanks & keep on rocking!
Email/Paypal: publicdomainvicgmail.com

Coding: GingerTG v0.1.0
--Victor

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,729
    • View Profile
    • Donate to Member
Re: copy two files from one folder to many folders
« Reply #3 on: September 23, 2021, 04:07 PM »
It too simple. I can't create rules.
So I will need to point to several hundred folder where I want the original files to be copies

That is I can't proposed a tree like this :

Y:\folder1\folder2\<any subfolder>\compo\ where the original files must be copied if that folder is not an empty folder.
 :-* :P

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,729
    • View Profile
    • Donate to Member
Re: copy two files from one folder to many folders
« Reply #4 on: September 23, 2021, 04:15 PM »
I think I need a RegEx utility or something.
My eternal problem
 ;D


Note : perhaps a bat file with some wild options *.*
 :-\
« Last Edit: September 23, 2021, 04:27 PM by Contro »

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,729
    • View Profile
    • Donate to Member
Re: copy two files from one folder to many folders
« Reply #5 on: September 23, 2021, 04:29 PM »
An ahk utility ?

 :tellme: :tellme: :tellme:

publicdomain

  • Honorary Member
  • Joined in 2019
  • **
  • Posts: 323
  • Call me Vic!
    • View Profile
    • PublicDomainWeekly.com
    • Read more about this member.
    • Donate to Member
Re: copy two files from one folder to many folders
« Reply #6 on: September 23, 2021, 06:09 PM »
If you need something else added (i.e. another feature), I'm in to assist

Okie, I'm creating a custom release (based on hard-coded "compo" path) right now, with condition on empty dir.

An ahk utility ?

A regular .exe program...
✔️ New releases: PublicDomainWeekly.com

🎁 One-time support: Paypal @ www.paypal.com/paypalme/victorvls

❤️ Steady support: Patreon @ www.patreon.com/publicdomain

Thanks & keep on rocking!
Email/Paypal: publicdomainvicgmail.com

Coding: GingerTG v0.1.0
--Victor
« Last Edit: September 24, 2021, 08:17 AM by publicdomain »

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,729
    • View Profile
    • Donate to Member
Re: copy two files from one folder to many folders
« Reply #7 on: September 24, 2021, 05:11 PM »
I can wait
 :-* :P

publicdomain

  • Honorary Member
  • Joined in 2019
  • **
  • Posts: 323
  • Call me Vic!
    • View Profile
    • PublicDomainWeekly.com
    • Read more about this member.
    • Donate to Member
Re: copy two files from one folder to many folders
« Reply #8 on: September 25, 2021, 05:44 PM »
I can wait
 :-* :P

Thanks AMIGO; next post is your full program, with a basic search pattern for files/folders  :Thmbsup:

multicopy-contro_ALPHA_2021-09-25.png
✔️ New releases: PublicDomainWeekly.com

🎁 One-time support: Paypal @ www.paypal.com/paypalme/victorvls

❤️ Steady support: Patreon @ www.patreon.com/publicdomain

Thanks & keep on rocking!
Email/Paypal: publicdomainvicgmail.com

Coding: GingerTG v0.1.0
--Victor

publicdomain

  • Honorary Member
  • Joined in 2019
  • **
  • Posts: 323
  • Call me Vic!
    • View Profile
    • PublicDomainWeekly.com
    • Read more about this member.
    • Donate to Member
Re: copy two files from one folder to many folders
« Reply #9 on: September 29, 2021, 07:55 AM »
Thanks AMIGO; next post is your full program ...

As promised, here it is:

Info: https://github.com/p...ain/multicopy-contro
Download: https://github.com/p.../releases/tag/v0.1.0

Enjoy!
Vic
✔️ New releases: PublicDomainWeekly.com

🎁 One-time support: Paypal @ www.paypal.com/paypalme/victorvls

❤️ Steady support: Patreon @ www.patreon.com/publicdomain

Thanks & keep on rocking!
Email/Paypal: publicdomainvicgmail.com

Coding: GingerTG v0.1.0
--Victor

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,729
    • View Profile
    • Donate to Member
Re: copy two files from one folder to many folders
« Reply #10 on: September 30, 2021, 04:42 PM »
Running to try.
Best Regards
 :-* :P

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,729
    • View Profile
    • Donate to Member
Re: copy two files from one folder to many folders
« Reply #11 on: October 01, 2021, 06:17 AM »
At the beginning I didn't know how to do, but slowly.....
AsusPortatil - 01_10_2021 , 12_11_09.pngcopy two files from one folder to many folders

I suppose that if I don't check the overwrite option I will not overwrite anything, but I would like the posibility to overwrite when the creation date of the .doc file is more recent.
That is overwrite if the file creation date is more recent in origin. By example in origin the file was modified in sept.21 and in target was last modified in oct.19 , so in this case I need replace or overwrite.
Can I have this ?
 :-* :P

Note : the program I am assuming i can use with other extension files like .ods , .xls in the same folder COMPO .
 :Thmbsup:

publicdomain

  • Honorary Member
  • Joined in 2019
  • **
  • Posts: 323
  • Call me Vic!
    • View Profile
    • PublicDomainWeekly.com
    • Read more about this member.
    • Donate to Member
Re: copy two files from one folder to many folders
« Reply #12 on: October 01, 2021, 01:27 PM »
Can I have this ?
 :-* :P

Yes, sure! Next version comes with it. Stay tuned.

Note : the program I am assuming i can use with other extension files like .ods , .xls in the same folder COMPO .
 :Thmbsup:

That's correct :) Simply change the file or directory pattern before hitting the browse button.

Cheers!
✔️ New releases: PublicDomainWeekly.com

🎁 One-time support: Paypal @ www.paypal.com/paypalme/victorvls

❤️ Steady support: Patreon @ www.patreon.com/publicdomain

Thanks & keep on rocking!
Email/Paypal: publicdomainvicgmail.com

Coding: GingerTG v0.1.0
--Victor

publicdomain

  • Honorary Member
  • Joined in 2019
  • **
  • Posts: 323
  • Call me Vic!
    • View Profile
    • PublicDomainWeekly.com
    • Read more about this member.
    • Donate to Member
Re: copy two files from one folder to many folders
« Reply #13 on: October 13, 2021, 11:49 AM »
Hello amigo, since your request overwrites files, should it have a "Backup on overwrite" check box option?

That's the only thing I think is left, unless you keep your own backups.
✔️ New releases: PublicDomainWeekly.com

🎁 One-time support: Paypal @ www.paypal.com/paypalme/victorvls

❤️ Steady support: Patreon @ www.patreon.com/publicdomain

Thanks & keep on rocking!
Email/Paypal: publicdomainvicgmail.com

Coding: GingerTG v0.1.0
--Victor

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,729
    • View Profile
    • Donate to Member
Re: copy two files from one folder to many folders
« Reply #14 on: October 14, 2021, 06:54 AM »
Hello amigo, since your request overwrites files, should it have a "Backup on overwrite" check box option?

That's the only thing I think is left, unless you keep your own backups.
I don't understand well what you are trying to say.
It's not a backup. It's overwrite the target file when the original file to be copied is more recent that the one in the target folder.
 :-* :P

Note : if you want you can create a subfolder with a copy of the replaced file as a backup. Why not ?.
Or any improvement additional for copying with security, like a reverse module.
 :-* :P
« Last Edit: October 14, 2021, 10:16 AM by Contro »