Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » How to launch a file with options in Eclipse?
How to launch a file with options in Eclipse? [message #104317] Thu, 31 July 2003 15:19 Go to next message
Eclipse UserFriend
Originally posted by: wgyun.hotmail.com

Hi there,
I tried launching a batch file from Eclipse by using
Program.launch("c:\\mybat.bat"), but I couldn't pass in some options to the
batch file. Is there a way to achieve that?
Thanks a lot!
Re: How to launch a file with options in Eclipse? [message #104336 is a reply to message #104317] Thu, 31 July 2003 15:07 Go to previous messageGo to next message
Eclipse UserFriend
Try java.lang.Runtime.exec(...). You can pass in a command line.

Darin

"Cindy Wen" <wgyun@hotmail.com> wrote in message
news:bgbp6a$iok$1@eclipse.org...
> Hi there,
> I tried launching a batch file from Eclipse by using
> Program.launch("c:\\mybat.bat"), but I couldn't pass in some options to
the
> batch file. Is there a way to achieve that?
> Thanks a lot!
>
>
Re: How to launch a file with options in Eclipse? [message #104348 is a reply to message #104336] Thu, 31 July 2003 15:42 Go to previous message
Eclipse UserFriend
Originally posted by: wgyun.hotmail.com

That works, thanks for your instant reply!

"Darin Wright" <Darin_Wright@ca.ibm.com> wrote in message
news:bgbpd2$j0v$1@eclipse.org...
> Try java.lang.Runtime.exec(...). You can pass in a command line.
>
> Darin
>
> "Cindy Wen" <wgyun@hotmail.com> wrote in message
> news:bgbp6a$iok$1@eclipse.org...
> > Hi there,
> > I tried launching a batch file from Eclipse by using
> > Program.launch("c:\\mybat.bat"), but I couldn't pass in some options to
> the
> > batch file. Is there a way to achieve that?
> > Thanks a lot!
> >
> >
>
>
Previous Topic:console input
Next Topic:[ANN] (Colored) Properties File Editor for Eclipse Version 0.0.1
Goto Forum:
  


Current Time: Thu Jul 10 02:59:53 EDT 2025

Powered by FUDForum. Page generated in 0.09822 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top