Sign in to follow this  
Followers 0
Enigma776

Copying a single file to multiple directories

12 posts in this topic

Hello,

Does anyone know of a simple way of copying a single file to multiple directories.

Example;

File.Ext to Folder1,Folder2,Folder3 and so on

These folders are sub directories of a main folder if that helps.

I would do it manually but there are a lot of sub directories.

Share this post


Link to post
Share on other sites

Create a shortcut on each drive to link to a main shortcut. Will this not work? I do it for my music and works like a charm.

Share this post


Link to post
Share on other sites

use a directory lister to list out the sub directories, and then turn the list into a .bat file

i.e.

copy c:\file.ext "d:\directory1\sub directory1"

copy c:\file.ext "d:\directory1\sub directory2"

etc

quotes only needed if there is a space in the path

Share this post


Link to post
Share on other sites

I can not even work out what your on about let alone how it works, could you make more clear?

Share this post


Link to post
Share on other sites
I can not even work out what your on about let alone how it works, could you make more clear?

Use this to make a list of the sub directories you want to copy the file into. like this

c:\Documents and Settings\woody\Desktop\New Folder\

c:\Documents and Settings\woody\Desktop\New Folder\Copy (2) of New Folder\

c:\Documents and Settings\woody\Desktop\New Folder\Copy (3) of New Folder\

c:\Documents and Settings\woody\Desktop\New Folder\Copy (4) of New Folder\

c:\Documents and Settings\woody\Desktop\New Folder\Copy of New Folder\

c:\Documents and Settings\woody\Desktop\New Folder\New Folder\

then open the resulting file in a text editor and using find/replace to turn it into this

copy c:\file.ext "c:\Documents and Settings\woody\Desktop\New Folder\"

copy c:\file.ext "c:\Documents and Settings\woody\Desktop\New Folder\Copy (2) of New Folder\"

copy c:\file.ext "c:\Documents and Settings\woody\Desktop\New Folder\Copy (3) of New Folder\"

copy c:\file.ext "c:\Documents and Settings\woody\Desktop\New Folder\Copy (4) of New Folder\"

copy c:\file.ext "c:\Documents and Settings\woody\Desktop\New Folder\Copy of New Folder\"

copy c:\file.ext "c:\Documents and Settings\woody\Desktop\New Folder\New Folder\"

The quotes are only needed if the path has a space in it.

If you want, make a list of the directories you need to copy it into and send it to me with the path to the file you want copying (inc file name) and I will try to sort it for you.

Share this post


Link to post
Share on other sites

I don't know if you are talking to me or not.

Create a folder. Right-click that folder and drop it into one of your drives, C:, for example. Now this shortcut is pointing there.

Now take the shortcut you just created and right-click it and drag it to another drive., D:, for example.

Whatever you put in that main folder, it will now be in both folders on both drives. I realize these are only shortcuts, but besides getting a batch file list or manually copying them I don't know how. You can synchronize them?

Hope it helps, sorry if it doesn't.

Share this post


Link to post
Share on other sites

Yea I know how batch files work but I would hoping for a simple solution with out the need for them.

Darkmanx you idea will only work if your starting a new sync not for one that is already built

Share this post


Link to post
Share on other sites

Removed, by the time I typed it someone else had already :-S

Share this post


Link to post
Share on other sites
Fileboss isn't free but it does do exactly what your asking you might wanna check it out....

Share this post


Link to post
Share on other sites

Fileboss dis the trick, luckily it has a trial which was not limited :)

Thank you so much.

Share this post


Link to post
Share on other sites

I have to ask -- why in the world would you need to copy a file to multiple directories? That are sub folders no less, I am drawing a blank on why anyone would want to do this.

Most people are looking for ways to remove duplicates -- your trying to create them.. Could you explain why you need some file in every directory -- Im drawing a blank on the purpose of doing such a thing.

Share this post


Link to post
Share on other sites
I have to ask -- why in the world would you need to copy a file to multiple directories? That are sub folders no less, I am drawing a blank on why anyone would want to do this.

Most people are looking for ways to remove duplicates -- your trying to create them.. Could you explain why you need some file in every directory -- Im drawing a blank on the purpose of doing such a thing.

I'm not sure about the OP but in my case I was placing index.php files in multiple directory's for a script which makes directory browsing look pretty, and when you have a ton of midi files all sorted by artist then album something like this sure comes in handy.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.