EXE read-only user defined type  

Purpose

Return the path and/or name of 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 the complete path and file name of the executing program, or just a selected part of it.  If the reference is physically located within a DLL, the name of the executable program which loaded it is returned.

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$