EXE read-only user defined type  

Purpose

Return information about the executing program.

Syntax

h& = EXE.Inst

f$ = EXE.Extn$
f$
= EXE.Full$
f$
= EXE.Name$
f$
= EXE.Namex$
f$
= EXE.Path$

Remarks

You can use EXE to retrieve information about the executing program, including the complete path and file name, or just a selected part of it.  If the reference is physically located within a DLL, the returned data describes the executable program which loaded it.

EXE.Inst

This returns the instance handle (a DWord) of the program which is currently executing.

EXE.Extn$

This returns the extension (with a leading period) of the program which is currently executing.

EXE.Full$

This returns the complete drive, path, file name, and extension of the program which is currently executing.

EXE.Name$

This returns just the file name of the program which is currently executing.

EXE.Namex$

This returns the file name and the extension of the program which is currently executing.

EXE.Path$

This returns the complete drive and path of the program which is currently executing.

See also

COMMAND$, PATHNAME$, PATHSCAN$