Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » Start application with parameters(provide user and password ?)
Start application with parameters [message #786462] Mon, 30 January 2012 13:10 Go to next message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 818
Registered: October 2011
Senior Member
Is it possible to start the application my_scout_app.exe from a script providing user and password as parameters?
Re: Start application with parameters [message #786801 is a reply to message #786462] Mon, 30 January 2012 20:47 Go to previous message
Bertin Kiekebosch is currently offline Bertin KiekeboschFriend
Messages: 310
Registered: August 2011
Senior Member
Hi,

if you add some command line parameters you can read them inside your app by using Platformget.CommandLineArgs(); Example below is the Desktop.execInit().


  @Override
  protected void execInit() throws ProcessingException {
    String[] args = Platform.getCommandLineArgs();
    if (args != null) {
      for (int i = 0; i < args.length; i++) {
        System.out.println(args[i]);
      }
    }
  }
Previous Topic:Form with table and detail fields
Next Topic:CodeType with codes from the database
Goto Forum:
  


Current Time: Sun Dec 21 01:07:23 GMT 2014

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

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