Navigation:  thinBasic Modules > File >

DIR_GetCurrent

Previous pageReturn to chapter overviewNext page

 

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:")