Book a Demo

Author Topic: Start EA using batch file  (Read 4268 times)

Dobrin

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Start EA using batch file
« on: January 15, 2014, 03:04:05 am »
Hello,

I want to use a batch file to start EA.
Do you know how can I start EA using some options? For example to start logged in as my user? Or to start with EA with a particular diagram (different from default one)

Thank you in advance for your answer.

Dobrin

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Start EA using batch file
« Reply #1 on: January 15, 2014, 03:43:53 am »
Use the Repository.OpenFile2 method. You can use some EA functionality to open default diagrams for a user. Sorry, I forgot where to find it since I don't use it and my aged brain now refuses to remember unused things ;-)

q.

OpenIT Solutions

  • EA User
  • **
  • Posts: 555
  • Karma: +9/-1
    • View Profile
Re: Start EA using batch file
« Reply #2 on: January 15, 2014, 04:50:02 am »
Hi,

You might be better of creating project shortcuts (see http://www.sparxsystems.com/enterprise_architect_user_guide/9.3/projects_and_teams/shortcuts_to__eap_files.html) and launching them from the batch file (see windows 'start' command). I don't think the ea.exe has command line options.

Regards,

Jon.

Dobrin

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: Start EA using batch file
« Reply #3 on: January 16, 2014, 01:32:42 am »
Thanks to both of you.

Solved! For now the solutions with creating project shortcut is faster but I will definitely will take a look on the Repository method.

Have a nice day!