Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am looking to implement some automation on my computer.

I want to copy a file from a source directory into multiple folders of a target directory, and rename each copy to its original name plus the name of the folder.

What's the best way to go about this? Should I use Visual Basic or another programming language?

share|improve this question
You should specify an operating system. One could assume you mean Windows, since you mentioned VB, but it's good to specify. – Patrick S. Nov 19 '11 at 2:09
I believe even under Windows, the task is most easily done with a bash script. It can be done with two nested for loops. – Nov 19 '11 at 5:49
Bash would be easy, but it would have to be installed. VBScript or PowerShell would be native to Windows. – Patrick S. Nov 19 '11 at 16:11
There really is no best way, there is only the way you are most comfortable., vbscript, bash, autoit, perl, python, etc. Any of them are perfectly appropriate for the task at hand. If you are familiar with Visual Basic, then by all means, use it. – MaQleod Nov 21 '11 at 6:54

Thank you for your responses.

I found a good solution for my particular task. It's AutoIT, a free scripting environment. It even has UI capabilities.

share|improve this answer
It has a successor in AutoHotKey as well; I couple AHK and Python to accomplish a lot of automagic. – John Barry Nov 30 '11 at 1:57

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .