Ecler ECLERNET MANAGER User Manual

Page 188

Advertising
background image

188


A batch file is a simple text file containing a series of lines with Windows commands and saved with the

.BAT

extension.

A batch file for EclerNet Manager has a very simple syntax if both project and batch file are located in
the same folder as the EclerNet Manager executable file or

eclernet_manager.exe

(usually C: \

Program Files \ Ecler ... ). If you want to run the batch file from another location (for example, from the
Windows desktop), the easiest way to do this is to create a shortcut pointing to this batch.

If the file name of the project file or UCP panel to recall contains blanks, you'll need to insert it within
quotes in the command line. To avoid potential problems in this names, it is recommended to replace
blanks with underscore character. Example:

example_project

instead of

example project


Here are some examples of possible commands to be included in batch files:

 Loading a project named

my project.enp

in normal operation mode (EclerNet Manager

application will be visible, not minimized):

@start

eclernet_manager.exe "my project.enp"

 Loading a project named

my project.enp

in minimized operation mode (EclerNet Manager is not

visible, and appears as a blue round icon in the Windows notification area, in the lower right
corner of the screen):

@start

eclernet_manager.exe "my project.enp"

-hidden

 Loading a project named

my project.enp

in minimized operation mode and automatically

displaying a Control Panel (UCP) called

my panel

with the default Internet browser for your

computer. This example is valid when both EclerNet Manager and the internet browser with UCP
are running on the same computer:

@start

eclernet_manager.exe "my project.enp"

–hidden -launch_panel=

"my panel"

And this is what a batch file looks like as in the previous example (created with Windows Notepad):


If the project file, the batch file and the EclerNet Manager executable are located in different folders, the
syntax becomes more complex.

The following examples assume that the EclerNet Manager application has been installed in the default
folder (

C:\program files\Ecler\EclerNet Manager\eclernet_manager.exe

) and the project file in a

folder called

C:\program files\Ecler\EclerNet Manager\projects

.


Do not forget to put names containing blanks in quotes. By using quotation marks, the Windows

START

command can interpret the quoted text as the title of the window, add any title (or any character between

Advertising