Consultor Eletrônico



Kbase 16766: OS-COMMAND -- You May Need Tilde in Front of Double Quotes
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   5/10/1998
OS-COMMAND -- You May Need Tilde in Front of Double Quotes

If you are trying to pass double quotes as part of a command to the
OS-COMMAND statement, you must insert a tilde (~) character before
each occurance of the double quotes.

This is because the Progress Runtime Interpreter will strip away the
double quotes.

An example of this problem is shown below. Without the tilde
character before each double quote the output of the "AT" command is
redirected to the file instead of the output of the Progress session.

OS-COMMAND NO-WAIT AT 11:45 "PROWIN32 -p X.P >C:\X.TXT".

The above command will actually redirect the output of the "AT"
command to the file "C:\X.TXT".

OS-COMMAND NO-WAIT AT 11:45 ~"PROWIN32 -p X.P >C:\X.TXT~".

The above command will now redirect the output of the Progress
session to the file "X:\X.TXT".

Progress Software Technical Support Note # 16766