• Hey, guest user. Hope you're enjoying NeoGAF! Have you considered registering for an account? Come join us and add your take to the daily discourse.

DOS question

Status
Not open for further replies.

goodcow

Member
Is there a command or switch that'll let you copy a single file to all the folders inside of it?

i.e.

file.exe
folder1
folder2
folder3

And copy file.exe into each of those three folders.
 

Ecrofirt

Member
goodcow said:
Is there a command or switch that'll let you copy a single file to all the folders inside of it?

i.e.

file.exe
folder1
folder2
folder3

And copy file.exe into each of those three folders.

If you can't figure it out via DOS AND IF the folder names are all consecutive like that, and they're all in the same directory, I'll write you a small program that will do what you need.

the example would be:

file.exe

to
c:\windows\folder1\
c:\windows\folder2\
c:\windows\folder3\
c:\windows\folder4\
c:\windows\folder5\
c:\windows\folder6\
c:\windows\folder7\



If the directory structure is like that, I'll be able to write a small program quickly that'll do what you're asking. I'll be able to do it in an hour and a half or so, or it'll have to wait till sometime tomorrow. I've been moving furniture from one house to another all day so I'm beat. No idea if I'll be able to get to that tonight.

Let me know if you can use the help.
 
Status
Not open for further replies.
Top Bottom