Article View: borland.public.jbuilder.java.language
Article #8101Re: Launching a Word document in a Java program under Windows 98
From: Joi Ellis [TeamB]
Date: Wed, 25 Apr 2001 21:36
Date: Wed, 25 Apr 2001 21:36
38 lines
2270 bytes
2270 bytes
Luc BONAMEAU <alorsc@excite.com> wrote: > Hi Joi, > Your solution is good if the document is Microsoft Word document. What if > the is a JPEG image ? > Obviously, you can manually check the file extension and then launch the > proper editor. This assumes that you know the applications you have on your > machine. The program I'm writting is in a distibuted architecture so I can't > know this since every user has got a different machine and different > application installed. > Everything is so simple in NT versions where the command > cmd /c anyfile.anyextension > launches the right application in fonction of the extension 'anyextension ' > Doesn't the same mechanism exist in Win 9x versions ? If no, How could I > reproduice it ? Gee, ask Microsoft why they aren't consistant even within their own products... I create a platform-specific set of defaults in a properties file, fill it with some defaults, and let users fill in replacements when something doesn't work. That's the *only* way I know of to be platform independent. IE something like: print_windows=c:\\windows\\print print_unix=/bin/lpr mail_windows=c:\\program\ files\\outlook.exe mail_unix=/bin/mail and so on. -- Joi Ellis (TeamB) No direct email, please. For best results, post on news server newsgroups.borland.com! Newsgroup Info: http://www.borland.com/newsgroups/guide.html
Technical Details
Message-ID:
<3ae7434f_2@dnews>Path:
arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-03!supernews.com!newsswitch.lcs.mit.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.stealth.net!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews!not-for-mailReferences:
<3ae695f7_1@dnews> <3ae6d30d_2@dnews> <3ae6da55_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,d184d9727f26bf11
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-04-25 14:48:10 PST
Message-ID: <3ae7434f_2@dnews>
From: "Joi Ellis [TeamB]" <joi@aravox.com>
Subject: Re: Launching a Word document in a Java program under Windows 98
Newsgroups: borland.public.jbuilder.java.language
References: <3ae695f7_1@dnews> <3ae6d30d_2@dnews> <3ae6da55_1@dnews>
User-Agent: tin/1.4.2-20000205 ("Possession") (UNIX) (Linux/2.2.16-3 (i686))
NNTP-Posting-Host: 209.46.41.66
Date: 25 Apr 2001 14:36:16 -0700
X-Trace: dnews 988234576 209.46.41.66 (25 Apr 2001 14:36:16 -0700)
Lines: 38
Path: arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-03!supernews.com!newsswitch.lcs.mit.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.stealth.net!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews!not-for-mail