CurDir

FreeBASIC

CurDir
 
Returns the current directory/folder

Syntax

Declare Function CurDir ( ) As String

Usage

result = CurDir

Return Value

A String which is set to the name of the current directory/folder.

Description

Returns the current directory/folder.

Example

Print CurDir

output will vary.

Dialect Differences

  • Not available in the -lang qb dialect unless referenced with the alias __Curdir.

Differences from QB

  • New to FreeBASIC

See also