Hi,
how can i get the path of my own program?
I.e. my program was started from 'c:\myprogram\program.exe'
and i want to show the path in a messagebox.
thx
Hi,
how can i get the path of my own program?
I.e. my program was started from 'c:\myprogram\program.exe'
and i want to show the path in a messagebox.
thx
per the lang ref
Application.ExecutableFile
Property (As FolderItem)
The property is read-only.FolderItemValue = aApplication.ExecutableFile
Returns a FolderItem for the actual executable application even if it is in a bundle.Notes
Use the properties and methods of the FolderItem class to get/set attributes of the executable file and/or perform operations. For example:
app.ExecutableFile.NativePath
gets the full path to the executable.
app.ExecutableFile.CreationDate
gets the date/time the executable was created.
Hi all,
thx for the fast answers.
Problem solved.
regards
Hi Andrew,
Problem solved, but...
MsgBox(App.ExecutableFile.NativePath)
gives me the path + the name of the executable, but how
do i get only the path (w/o the name of the executable)?
regards
Please try searching the documentation at some point.
Hi Tim,
i had a long day and laziness kicked in.
But you're right.
regards
Next time click the message that best answered it, rather than yourself. It helps the TLDR folks.