Avaya MasterDirectory User Manual page 180

Data manager
Table of Contents

Advertisement

MasterDirectory User's Guide
Unattended Action Example 3: Running a Batch File
MasterDirectory enables you to create batch files, which are text files that contain a list of actions that
you want MasterDirectory to perform. In this example, MasterDirectory will start, open the file
"sample.md," and then run the batch file "batch1."
c:\PhoneLine\phlinemdv4\phlinemd /i c:\Phoneline\phlinemdv4\sample.md /m@ c:\PhoneLine\phlinemdv4\batch1 /u
where
c:\PhoneLine\phlinemdv4\phlinemd is the path and executable for MasterDirectory
/i c:\PhoneLine\phlinemdv4\sample.md is the path and directory for the MasterDirectory file you
want to use
/m@ c:\PhoneLine\phlinemdv4\batch1 is the batch file you want to use
/u instructs MasterDirectory to execute only unattended operations
The following is an example of the contents of a batch file. Note that you must include the path and file
name for each file you want to use.
c:\phoneline\phlinemdv4\query1.qry
c:\phoneline\phlinemdv4\export.exp
c:\phoneline\phlinemdv4\full.qry
c:\phoneline\phlinemdv4\import1.imp
In this batch file, MasterDirectory will perform the following actions:
1.
Run the advanced query "query1.qry."
2.
Run the export map "export.exp."
3.
Run the advanced query "full.qry."
4.
Run the import map "import1.imp."
Unattended Action Example 4: Running an ACP Server Import Map from a Batch File at
a Scheduled Time
In this example, you will create a batch file that will import data from an ACP server at a scheduled
time.
1.
Add an action as an Unattended Operation.
2.
Open Notepad.
3.
Type <path to phlinemd.exe (MasterDirectory executable)> /I <path to MasterDirectory.md file>
/u (for example, c:program files\Avaya\Softconsole\phlinemd.exe /I c:\program
files\Avaya\Softconsole\Corporate.md /u)
4.
Save the Notepad file as a batch file (for example, c:\program
files\Avaya\Softconsole\Corporate.bat).
5.
Open an MS-DOS window.
6.
Specify when you want the batch file to be performed. For example, if you want to run the batch
file Corporate.bat (Step 4) every Monday, Wednesday, and Friday at 1:00 AM using AT scheduler
on a Windows NT server, type at 1:00am /interactive /every: Monday,Wednesday,Friday
"C:Program Files\Avaya\Softconsole\Corporate.bat".
172

Advertisement

Table of Contents
loading

This manual is also suitable for:

Masterdirectory 4.3

Table of Contents