thankyou all..infact the exe i was trying to open was named as "TCPServer.exe", and i just renamed the same exe and it got opened. the code worked perfectly fine. this was strange with that specific exe...neways, problem got solved, thnkyou all again for ur interest.