Skip to content

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.

Examples ​

start GeSHi

vb
Print CurDir

end GeSHi

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 ​

  • Open
  • Dir
  • Chdir
  • Mkdir
  • Rmdir

Back to DocToc

Translated from FreeBASIC official docs. Contact us for removal if infringed.
FreeBASIC is an open-source project, not affiliated with Microsoft