Csfragu,
You are asking, but not giving. Please be aware that this is a community driven forum, and we appreciate it if you show something of what you got. You already got half a solution and half a dozen of options to solve your project.
We won't catch the fish, we might show you where the fish-tools shop is.
Ton