• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to open files in there appropriate softwares

 
ShaikSalam Bashoeb
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI.... May i know how to Open files in there approriate softwares.
For ex: if file is text file then it should open in notepad. or if file is .doc then it should open in word document.


I have give but this code is not working........

Any help wil be apprecited
 
Amit Ghorpade
Bartender
Posts: 2856
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Setting the content type helps the browser know what type of data is coming in.
But the manner in which the content is handled is upto the browser configuration. Like someone might not associate any application to handle a PDF file and want it to be simply downloaded, like wise.

Hope this helps
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To add to what Amit said: If you want to have a particular file type to open in Notepad (or Word or whatever) on your machine, then you can set your browser to do that.

But you have no control over what anyone else will do with the same file type.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!