Automatically start an ED application

Closed section that contains Frequently Asked Questions and their answers.

Moderator: InControl

Locked
User avatar
Fred
Posts: 22
Joined: Wednesday 17 November, 2010 - 12:06

Automatically start an ED application

Post by Fred »

Can I change the way ED starts?

Yes! In the program directory of Enterprise Dynamics a file named ED.app exists. This file is executed first and contains the code to initiate the startup process.

If you look at this file you can see that it contains something like this:

Code: Select all

{ load suite }
if(1, {CmdLineOption([chooseApp]), }
 t := getfileopen(pdir([apps\*.app]),[E.D. Applications (*.app)| *.app]),
 if(CompareText(CmdLineOption([suite]), []),
  t := pdir([apps\logistics suite.app]),
  t := pdir(concat([apps\], CmdLineOption([suite]), [.app]))
 )
);
if(not(CompareText(t, [])),
 execfile(t),
 exit
);
The getfileopen command allows us to choose the application that we want to open. However, if you always want to open the same file, e.g. Logistics Suite.app, you could remove the getfileopen command and replace this by:

Code: Select all

t := pdir([apps\logistics suite.app]);
Note: ED.app is an ED system file which can be replaced with any update of the software. Make a copy!
Locked