0

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?

Gareth
  • 18,809
GKED
  • 103
  • 2
    You should specify an operating system. One could assume you mean Windows, since you mentioned VB, but it's good to specify. – Patrick Seymour Nov 19 '11 at 02: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 05:49
  • Bash would be easy, but it would have to be installed. VBScript or PowerShell would be native to Windows. – Patrick Seymour 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 06:54

1 Answers1

0

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.

Gareth
  • 18,809
GKED
  • 103