Consultor Eletrônico



Kbase 17458: How to set the title of a batch program in MS-Windows
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/05/1998
How to set the title of a batch program in MS-Windows

When you run a batch mode Progress program (i.e. using -b) MS-Windows
normally shows an icon in the Desktop/Explorer Shell which has a
title of "Progress".

To change that title to something more useful, just put the following
line of code at the beginning of your batch program:

ASSIGN DEFAULT-WINDOW:TITLE = 'Your Title Goes Here'.

You could also make the title somewhat dynamic by passing the title
to your batch program using the -param startup parameter.

The following shows how to accomplish it:

ASSIGN DEFAULT-WINDOW:TITLE = SESSION:PARAMETER.

The SESSION:PARAMETER attribute is given the value you pass to
Progress using the -param startup parameter. The following command
line will set the window title to "My Batch Program":

PROWIN32.EXE -b -p SomeBatchProgram.P -param "My Batch Program"

Progress Software Technical Support Note # 17458