Progress 4GL Code Samples · Index · Part 1 · 2 · 3 · 4 · 5 · Expand · Web Feed


getOsPath.p returns a fully qualified path including a trailing slash or backslash, depending on the operating system. It can return UNC1 paths, but don't use UNC paths in Windows« .cmd/.bat files or with Windows« command line utilities, because those won't handle them properly.
Usage:


def var cWhat as char no-undo.                    
def var cPath as char no-undo.
run getOsPath.p(
        input cWhat,    /*
WorkDir         : Progress current directory
TempDir         : OS tempDir
AppTempDir     á: Progress tempDir
A relative path : relative path like "tools" "tools/temp" or "./tools"
                        */
        output cPath). /* ? on failure || OS-Path incl. trailing slash */


RUN getOsPath.p(input 'TempDir':U, output cPath). /* returns the tmpDir */

RUN getOsPath.p(input 'WorkDir':U, output cPath). /* returns the working directory of the current session */

RUN getOsPath.p(input 'tools/filesystem':U, output cPath). /* returns a fully qualified path like //server/.../progress/wrk/tools/filesystem/ */


Download.



Get a unique file nameNext Page

Previous PageDump/export a complete Progress« database


Progress 4GL Code Samples · Index · Part 1 · 2 · 3 · 4 · 5 · Expand · Web Feed




1

Universal/Uniform Naming Convention




Author: Sebastian
Last Update: Friday, March 25, 2005   Web Feed

· Home

· Development

· P4GL Code

· Web Links

· Link to us

· Contact

· What's new

· Site map

· Get Help


Most popular:

· Site Feeds

· Database Design Guide

· Google Sitemaps

· smartDataPump

· Spider Support

· How To Link Properly


Free Tools:

· Sitemap Validator

· Simple Sitemaps

· Spider Spoofer

· Ad & Click Tracking



Search Google
Web Site

Add to My Yahoo!
Syndicate our Content via RSS FeedSyndicate our Content via RSS Feed



To eliminate unwanted email from ALL sources use SpamArrest!






Digg this · Add to del.icio.us · Add to Furl · We Can Help You!




Home · Categories · Articles & Tutorials · Syndicated News, Blogs & Knowledge Bases · Web Log Archives


Top of page

No Ads


Copyright © 2004, 2005 by Smart IT Consulting · Reprinting except quotes along with a link to this site is prohibited · Contact · Privacy