Book a Demo

Author Topic: Starting EA from the Command Line  (Read 5037 times)

SwissSteve

  • EA User
  • **
  • Posts: 42
  • Karma: +0/-0
    • View Profile
Starting EA from the Command Line
« on: November 03, 2008, 06:59:07 pm »
I am trying to start EA from a batch file without success.
I should also say I am using a DB as a repository.

Tried the following batch file

c:
cd "C:\Program Files\Sparx Systems\EA"
run ea.exe earchitect
Pause

where earchitect is the DB model

I also tried

c:
cd "C:\Program Files\Sparx Systems\EA"
run ea.exe earchitect --- DBType=3;Connect=Provider=OraOLEDB.Oracle.1;Password=my password;Persist Security Info=True;User ID=earchitect;Data Source=RHEA

In both cases EA starts then I get the following error and the model is not loaded

An Error has Occurred: Couldnt find file C:\Program Files\Sparx
                                        Systrms\EA\earchitect

I am unable to to find any command line options for starting EA in the docs or help file.

TIA for any assistance

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Starting EA from the Command Line
« Reply #1 on: November 05, 2008, 03:31:28 am »
In the EA help you will find a short section on how to use Save As to 'save' a repository to a file. This creates an EAP file that contains the (EA format) connection string to the repository model instead of the model itself. EA recognizes this and attaches to the repository. You can also set up several options for things like which diagrams EA will open for you on startup.

I don't have EA configured on this machine, so you will need to look for this yourself. It is not difficult to find using the index or search page of the EA help. Just try a few 'obvious' (to the help writers, if not to us) keywords and it will pop out at you.

HTH, David
No, you can't have it!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8088
  • Karma: +118/-20
    • View Profile
Re: Starting EA from the Command Line
« Reply #2 on: November 05, 2008, 08:24:11 am »
Looks to me like EA isn't able to find the file you've said to open.

First, assuming earchitect.eap is in C:\Program Files\Sparx Systems\EA, try adding .eap to the argument passed to EA.

Second, you would need quotes around your connection string, otherwise they'll be considered separate arguments.

Once you've at least got a file opening, David's advice may come in handy.