SetDirSeparators

Set the directory separators to the known directory separators.

Declaration

Source position: finah.inc line 42

  function SetDirSeparators(const FileName: UNICODESTRING) : UNICODESTRING;
  function SetDirSeparators(const FileName: RAWBYTESTRING) : RAWBYTESTRING;

Description

SetDirSeparators returns FileName with all possible DirSeparators replaced by OSDirSeparator.

Errors

None.

See also

Name Description
ExpandFileName Expand a relative filename to an absolute filename.
ExtractFileDir Extract the drive and directory part of a filename.
ExtractFilePath Extract the path from a filename.

Example

Program Example47;
{ This program demonstrates the SetDirSeparators function }
Uses sysutils;
Begin
  Writeln (SetDirSeparators('/pp\bin/win32\ppc386'));
End.