Unit 'AmigaDOS' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#morphunits]

SetProgramDir

Sets the directory returned by GetProgramDir

Declaration

Source position: amigados.pas line 2035

function SetProgramDir(

  lock: LongInt

):LongInt;

Arguments

lock

  

A lock on the directory the current program was loaded from

Function result

The previous ProgramDir.

Description

Sets a shared lock on the directory the program was loaded from. This can be used for a program to find data files, etc, that are stored with the program, or to find the program file itself. Nil is a valid input. This can be accessed via GetProgramDir or by using paths relative to PROGDIR:.

See also

GetProgramDir

  

Returns a lock on the directory the program was loaded from

DosOpen

  

Open a file for input or output


Documentation generated on: 2021-07-30