Letting MS Windows start up the application registered with a particular file type


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Letting MS Windows start up the application registered with a particular file type

Hybrid View

  1. #1
    Jos Tusveld Guest

    Letting MS Windows start up the application registered with a particular file type


    Is there a way to toss a filename to MS Windows (from a Java application),
    invoking Windows to open the application registered with the particular file
    type (e.g. MS Word for a .doc file, the default browser for a .html file,
    ...) with the particular file opnened?

    Invoking a particular Windows application with Runtime.exec() is no problem,
    but I cannot assume the filetype nor which application to use (and where
    it is located) known.

  2. #2
    Paul Clapham Guest

    Re: Letting MS Windows start up the application registered with a particular file type

    This has nothing to do with Java, but you can use the Windows/DOS "Start"
    command. For example, "Start x22.xls" will launch the application
    associated with x22.xls.

    PC2

    Jos Tusveld <jos.tusveld@nl.origin-it.com> wrote in message
    news:3a685555$1@news.devx.com...
    >
    > Is there a way to toss a filename to MS Windows (from a Java application),
    > invoking Windows to open the application registered with the particular

    file
    > type (e.g. MS Word for a .doc file, the default browser for a .html file,
    > ..) with the particular file opnened?
    >
    > Invoking a particular Windows application with Runtime.exec() is no

    problem,
    > but I cannot assume the filetype nor which application to use (and where
    > it is located) known.




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center