Home > 10 Files > Recording Log (Batch) File

image\SHORTCUT.gif Back to the Main Topic

Recording Log (Batch) File

Create a batch file by recording the commands you use in an ARC+ work session.

\logon

 

Specify a name for the batch file. The system adds the extension .log.

Continue to work as usual in ARC+. Enter the desired commands using the menus, mouse, keyboard and keyboard shortcuts. The commands that you use are recorded in the batch file, until you stop recording.

image\ebx_1712504276.gif IMPORTANT While recording, use only functions that are permitted in batch files.

image\ebx_-726553584.gif HINT If you enter an erroneous command during the recording session or if you wish to change command parameters, you may edit the batch file with any ASCII editor.

Stop Recording a Log File

\logoff

 

Recording is terminated and the batch file is saved in the current directory of your disk.

image\ebx_1693072387.gif NOTE If you do not use this command, recording is continued until the end of the ARC+ session.

Continue recording a log file

Use the following command to continue recording a batch file after an interruption with the Stop recording (\logoff) command:

\logcont

 

Specify an existing batch filename. The system adds the extension .log.

Continue by entering the commands that you want to record. The commands are added to the end of the batch file. When you are done, stop recording using the Stop recording (\logoff).

Using Dialog Boxes in Recording a Log File

Dialog box activity can be recorded when using the Recording a work session and batch commands (\logon, \logoff, \logcont, \batch).

Saving in the dialog box is location dependent, i.e. based on the cursor position. If you choose a file (or directory) from the dialog box while recording, the file must be in the same location during the playback. If files are added to or removed from the list, the relative location of the selected file changes and the batch may choose the incorrect file. Therefore, the following steps are recommended:

Type file names in the dialog box. Avoid choosing the file and or directory with the mouse.

Run the \batch command as the first command of the work session.

Record & playback in a working directory devoted to this purpose only.

Use the recorded log file for such tasks as recording demonstrations of projects. The written log file does not include special lines for recording dialog box activity and is better suited to tasks such as repeated execution of a series of commands.

image\ebx_1693072387.gif NOTE If you edit the *.log file manually, be careful not to change any command that affects a dialog box display or operation To disable the recorded dialog box activity, you can manually edit out the line describing the \loaddlg command file. The event log file is then ignored.

The following limitations apply to recording and replaying log files with dialog boxes:

The screen resolution during recording and playback must be identical.

Recording with a digitizing tablet is not fully supported.

The Screen configuration (\loadcfg) command is disabled.

Values cannot be entered in the orthogonal mode.

Additional Log Files

The system creates four files instead of one (make sure to copy all four files when copying a *.log file):

logname.log — the batch file

logname.evt — dialog box events (if used)

logname.cfg — screen configuration

logname.sym — internal symbol information

The report created by the batch command (logname.rpt) shows the duration of each command execution at the end of each relevant line. The report file is overwritten each time you run the same batch file.