ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Finished Programs

DONE: Copy one particular file into every folder in a subdirectory

(1/4) > >>

nkormanik:
Say we have a subdirectory -- c:\1 -- that contains 100 folders.  We have a file on our desktop -- file.txt -- that we want to go into every single one of those folders.

We could write a 100-line batch file to do this.

Is there an easier way?  A one-liner?

Thanks!



skwire:
This is easily accomplished with a bit of AutoHotkey script.  Are you open to that?

nkormanik:
Sure I'm open to an AutoHotkey solution.  Anything to easily get the job done.  And that might be useful to others.  Who knows.

If, though, the best bet would be to simply write a long batch file, I'll stick with that.

Thanks.

c.gingerich:
I know that skwire was going to make one in AutoHotkey, but this only took me a few to make. :-)

Easy to use, select the target folder and the source file. Press Go!

SubCopy Download

DONE: Copy one particular file into every folder in a subdirectory

If you find any bug or issues, please let me know.

skwire:
Nicely done.  I sent my message last night and went to bed so it was nice to see this snack completed when I woke up.  =]  Nick, let us know if this will work for you and I'll mark this thread as done.

Navigation

[0] Message Index

[#] Next page

Go to full version