Consultor Eletrônico



Kbase 17389: How to use UNC to have maximal portability with Progress
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/05/1998
How to use UNC to have maximal portability with Progress

The big advantage of Progress is the high portability accross
several plattforms . Internal Progress uses for directory separaters
slashes and translates it to the for the operating system used
separaters e.g. a backslash . The example below shows how it is
possible to use UNC on Windows95 or NT for an output or input
operation . The filename is \\EMEANT\Users\rwe\test.txt :

def var f-line as character format "x(75)" .
output to //EMEANT/Users/rwe/test.txt .
put unformatted "Tests if output to and input from //EMEANT/Users/rwe
/test.txt works fine. " skip .
output close .
input from //EMEANT/Users/rwe/test.txt .
import unformatted f-line .
disp f-line .


The tested example shows the syntax of using slashes instead of
backslashes to provide a high portability using the application on
UNIX and also NT or Windows95 .

Progress Software Technical Support Note # 17389