Kbase P15012: How to use UNC to have maximal portability with Progress.
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  11/29/2005 |
|
Status: Verified
GOAL:
How to use UNC to have maximal portability with Progress.
FIX:
How to use UNC to have maximal portability with Progress.
The big advantage of Progress is the high portability across several plattforms. Internally, Progress uses slashes for directory separaters and translates these to the separaters required by the respective operating system e.g. a backslash on Unix. 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 FOR the application on UNIX and also NT or Windows95.