Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
2  
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. –  billc.cn 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. VB.net, 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
add comment

1 Answer

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.