Book a Demo

Author Topic: VBScript(ExportXMI) in Windows-Scheduler  (Read 4216 times)

Damião

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
    • View Profile
VBScript(ExportXMI) in Windows-Scheduler
« on: July 31, 2015, 05:42:51 am »
I am trying to run a VbScript in the Windows scheduler on a server.

It works fine only if i check the option
"Run only when user is logged on".

We need to use the option
"Run whether user is logged on or not".

Is there something i must change in the Script  (or in the Scheduler's options ) ?

Thanks !
==========================================
sub main
       dim r
      dim s
      set r = CreateObject("EA.Repository")

       r.OpenFile ("XX-XXXX --- DBType=0;Connect=Provider=MSDASQL.1;Persist Security Info=False;Data Source=XX-XXXX;LazyLoad=1;")

       set projectInterface = r.GetProjectInterface()

      s = projectInterface.GUIDtoXML ("{B0050097-8453-49b4-BDF2-8EF06930E440}")

      call projectInterface.ExportPackageXMI(s, 0, 1, -1, 0, 0, "\\maquina\server\diretorio\xx\Arquivo.xml")

      r.CloseFile()
end sub
main
==========================================

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: VBScript(ExportXMI) in Windows-Scheduler
« Reply #1 on: July 31, 2015, 07:41:35 am »
You must believe what you read. EA will not run as service. There's something from LieberLieber which talks about running EA as service. I simply used an old work station for things like that and logged on a user to deal with EA.

q.