Delphi What is the ExeName Property in DelphiVCL.Application?

FireWind

Свой
Регистрация
2 Дек 2005
Сообщения
1,957
Реакции
1,199
Credits
4,009
What is the ExeName Property in DelphiVCL.Application?
By Muhammad Azizul Hakim July 6, 2021

The ExeName property or DelphiVCL.Application.ExeName contains the file name of the application’s executable file including path information.

Use ExeName to obtain the name of the executable file for the application. ExeName is the fully-qualified name, including the path to the application’s executable.

More things about ExeName you need to know

The name of the application is the root name of the project with an .EXE extension. By default, this name is PROJECT1.EXE. To change the ExeName, save the project by the desired new root name and rebuild the application. ExeName will reflect the change to the project file name.

ExeName is a read-only property.

How to find details on all the properties and methods of the DelphiVCL application

Let’s browse all the properties, methods, and built-in properties of the DelphiVCL.Application.ExeName using dir() command:
Python:
import DelphiVCL
 
dir(DelphiVCL.Application.ExeName)
See the responses in our Windows command prompt:
1625570406840.png
You can also read short information about the DelphiVCL.Application.ExeName using the print() command:
Python:
print(DelphiVCL.Application.ExeName)
print(DelphiVCL.Application.ExeName.__doc__)

See the DelphiVCL property responses in the Windows command prompt

1625570628620.png