Article View: borland.public.jbuilder.java.language
Article #8098Re: Launching a Word document in a Java program under Windows 98
From: Joi Ellis [TeamB]
Date: Wed, 25 Apr 2001 13:37
Date: Wed, 25 Apr 2001 13:37
22 lines
1663 bytes
1663 bytes
Luc BONAMEAU <alorsc@excite.com> wrote:
> 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.
I think you need to launch the editor binary directly.
Runtime.getRuntime().exec('C:\path\to\word\word "' +
c:\docs\anydoc.anyextension+ '"')
I don't remember if \ has to be escaped in a windows-platform or if you
can substitute '/' to get around that.
--
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:
<3ae6d30d_2@dnews>Path:
arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-03!supernews.com!cyclone2.usenetserver.com!news-out.usenetserver.com!newsfeed.icl.net!news-x.support.nl!fr.clara.net!heighliner.fr.clara.net!unlisys!news.snafu.de!fu-berlin.de!news.boerde.de!dnews!not-for-mailReferences:
<3ae695f7_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 07:10:04 PST
Message-ID: <3ae6d30d_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>
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 06:37:17 -0700
X-Trace: dnews 988205837 209.46.41.66 (25 Apr 2001 06:37:17 -0700)
Lines: 22
Path: arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-03!supernews.com!cyclone2.usenetserver.com!news-out.usenetserver.com!newsfeed.icl.net!news-x.support.nl!fr.clara.net!heighliner.fr.clara.net!unlisys!news.snafu.de!fu-berlin.de!news.boerde.de!dnews!not-for-mail