Article View: borland.public.jbuilder.java.language
Article #7838Re: Runtime Exec Example
From: Nabin Thomas
Date: Thu, 17 May 2001 18:29
Date: Thu, 17 May 2001 18:29
71 lines
3101 bytes
3101 bytes
This is a multi-part message in MIME format.
--------------B99AC309397D68AB09E626A9
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
I Think it would be better to add start allways
Sara Swartz wrote:
> Thanks so much!
> This will be running on Win98 and (to a lesser extent) on NT.
> Under which circumstances would I preface the command with the items that
> you mentioned?
>
> Thanks Again
>
> "Rich Wilkman" <richw@formlessvoid.com> wrote in message
> news:3B0152F8.116A0D04@formlessvoid.com...
> > Sara:
> >
> > What version of Windows? Basically:
> >
> > Runtime.getRuntime().exec("the exact command you would do at the dos
> > prompt").
> >
> > However you may need to preface the command with command.com /c or
> > cmd.exe
> > or start
> >
> > You can quickly see how, even on one OS, Runtime.exec is not exactly
> > portable.
> >
> > -Rich
> >
> > Sara Swartz wrote:
> > >
> > > Hi,
> > >
> > > Can anyone show me an example of using a dos command in a Java program?
> > > Ideally, I would like to run the commands in the program and not have to
> > > call a batch file, but if that isn't possible, how I would call the
> batch
> > > file?
> > >
> > > The command would remap (and later un-map) the user's Z: drive. Is it
> > > possible to do that in Java without having to go through the batch file
> at
> > > all?
> > >
> > > Thanks,
> > > Sara
--------------B99AC309397D68AB09E626A9
Content-Type: text/x-vcard; charset=us-ascii;
name="viewmycard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Nabin Thomas
Content-Disposition: attachment;
filename="viewmycard.vcf"
begin:vcard
n:Thomas;Nabin
x-mozilla-html:TRUE
adr:;;;;;;
version:2.1
email;internet:DONOTSPAMME.nabinthomas@REMOVETHIShotmail.comANDTHISTOO
note;quoted-printable:REMOVE the Capitalised letters in my email ID given in this card=0D=0A=0D=0AFeel free to contact me thru e-mail or MSN Mssenger =0D=0A if required but DONOT SPAM=0D=0A=0D=0A
fn:Nabin Thomas
end:vcard
--------------B99AC309397D68AB09E626A9--
Technical Details
Message-ID:
<3B041897.4AB68462@foremail.nospamplease>Path:
arc1-ca.pugleaf.net!archiver1.sj.google.com!newsfeed.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!news.maxwell.syr.edu!fr.usenet-edu.net!usenet-edu.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnewsReferences:
<3b013312$1_1@dnews> <3B0152F8.116A0D04@formlessvoid.com> <3b01558b$1_2@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,b8415ce0c4751a66 X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-05-17 22:40:09 PST Message-ID: <3B041897.4AB68462@foremail.nospamplease> Date: Thu, 17 May 2001 23:59:43 +0530 From: Nabin Thomas <viewmycard@foremail.nospamplease> X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language Subject: Re: Runtime Exec Example References: <3b013312$1_1@dnews> <3B0152F8.116A0D04@formlessvoid.com> <3b01558b$1_2@dnews> Content-Type: multipart/mixed; boundary="------------B99AC309397D68AB09E626A9" NNTP-Posting-Host: 202.9.186.14 X-Trace: dnews 990163719 202.9.186.14 (17 May 2001 22:28:39 -0700) Lines: 74 Path: arc1-ca.pugleaf.net!archiver1.sj.google.com!newsfeed.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!news.maxwell.syr.edu!fr.usenet-edu.net!usenet-edu.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews