Article View: borland.public.jbuilder.java.language
Article #8095Launching a Word document in a Java program under Windows 98
From: Luc BONAMEAU
Date: Wed, 25 Apr 2001 09:17
Date: Wed, 25 Apr 2001 09:17
15 lines
1395 bytes
1395 bytes
Hi,
Under Win NT, this is what I do to lauch a my word document or any document
Process p = Runtime.getRuntime().exec("cmd /c \"" +
c:\docs\anydoc.anyextension+ "\"");
I know that the command processor is cmd.exe under NT and Comand.com under
Win9x. The problem is that Win9x does'nt do any link between extensions and
programs, so the command
Runtime.getRuntime().exec("command /c \"" +
c:\docs\anydoc.anyextension+ "\"")
doesn't work.
Any idea ?
Technical Details
Message-ID:
<3ae695f7_1@dnews>Path:
arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnewsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,d184d9727f26bf11,start X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-04-25 02:46:03 PST Reply-To: "Luc BONAMEAU" <alorsc@excite.com> From: "Luc BONAMEAU" <alorsc@excite.com> Newsgroups: borland.public.jbuilder.java.language Subject: Launching a Word document in a Java program under Windows 98 Date: Wed, 25 Apr 2001 11:17:39 +0200 Lines: 18 Organization: Arcad Software X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 NNTP-Posting-Host: 62.73.1.89 Message-ID: <3ae695f7_1@dnews> X-Trace: dnews 988190199 62.73.1.89 (25 Apr 2001 02:16:39 -0700) Path: arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews