Those languages won't do you much good as they execute inside the realm of a web browser and are not capable of opening applications on your machine.
You are going to need to use something like C# or VB
.NET to achieve your desired results.
Wrox has plenty of books on both topics:
Read this if you want to know how to get a correct reply for your question:
.: Wrox Technical Editor / Author :.
Wrox Books 24 x 7