HB_DirSepToOS

HB_DirSepToOS

Convert dir separators in a path to OS standard dir separators

Syntax

      HB_DirSepToOS( <cPath1> ) -> <cPath2>

Argument

<cPath1> : A path with any dir separator in it

Returns

<cPath2> : Converted dir separators to OS standard version of <cPath1>

Description

In paths, “dir separator” is a ‘\’ ( back slash ) for DOS / Windows and a “/” ( slash )for U*nix systems

HB_DirSepToOS() is a function to convert dir separators to OS standard

Example

      LOCAL cDir := 'C:/temp/TestSeps'
      ? HB_DirSepToOS( cDir  )            // C:\temp\TestSeps

Seealso

HB_PathNormalize(), HB_DirSepAdd(), HB_DirSepDel(), TrueName()

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s