Ok thanks a lot guys for your response.. But one more question on opening programs. Suppose you want to open programs with a particular file.
As SamCG said
<code? perl -e "system 'C:\Program Files\TextPad 4\Textpad.exe'"</code>
open the textpad in his computer.
But suppose i want to open the textpad with a particular file say myfile.txt Then?
The code that you might give me... can that be extended to other programs also like for eg. opening Winamp with a particular mp3 ?