Harbour Reference Guide

 

CURDIR()

Returns the current OS directory name.

Syntax

CURDIR( [<cDrive>] ) --> cPath

Arguments

<cDir> OS drive letter

Returns

<cPath> Name of directory

Description

This function yields the name of the current OS directory on a specified drive.If <cDrive> is not speficied,the currently logged drive will be used.

This function should not return the leading and trailing (back)slashes.

If an error has been detected by the function,or the current OS directory is the root,the value of the function will be a NULL byte.
Examples
      ? Curdir()
Status

Ready

Compliance

This function is Ca-Clipper Compatible

Platforms

ALL

Files

Library is Rtl

See Also

 




[Source Forge]

Other Docs Categories

Advantage Database RDD
Array
Binary conversion
Classes
Code Block
Console input
Conversion
Conversion Tools
DOS
Data input and output
Database
Database Tools
Date
Dos Tools
Environment
Error recovery
Events
File management
GT
Harbour Tools
Internal
Low Level
Math
Misc
Miscellaneous
Nation
Object manipulation
Operating System Specific
Parameter Checks
String Tools
Strings
TBrowse Method
TBrowse class
Terminal
Time
Utility
Variable Management

 

Last updated on 2001/07/30