Help Center
Help CenterFreeBASIC

CurDirfunction

Returns the current directory/folder

Operating System Functionsfunctiondocumented

Syntax

Declare Function CurDir ( ) As String

Return value


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

Description


Returns the current directory/folder.

Remarks

Usage


result = CurDir

Dialect Differences


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

Differences from QB


  • New to FreeBASIC

See also


Example


Print CurDir

output will vary.

Reference

  • Documented in KeyPgCurdir.html