DIR_GetCurrent

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > File > DIR: functions working on directories >

DIR_GetCurrent

 

Description

 

Return current directory in specified drive.

 

Syntax

 

s = DIR_GetCurrent [(DriveName)]

 

Returns

 

String.

 

Parameters

 

Name

Type

Optional

Meaning

DriveName

String

No

Name of the drive (disk) you want the current directory.

 

Remarks

 

Restrictions

 

See also

 

File Module,

 

Examples

 

'---Get current directory from default drive

DIR_GetCurrent

 

'---Get current directory from drive C:

DIR_GetCurrent("C:")

 

'---Get current directory from drive D:

DIR_GetCurrent("D:")