Hi LC specialist,
I need to get the application executable name and path of the runtime version of my application with code in that same application.
I need this for a button with which the user can place the application into de Auto Start Menu of windows.
Cannot seem to find information about this.
Anybody some clever ideas
Regards,
Paul
Get application executable name and path of the runtime version
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
mrcoollion
- Posts: 744
- Joined: Thu Sep 11, 2014 1:49 pm
Re: Get application executable name and path of the runtime version
Hi Paul,
on Windows do this in the mainstack, the one that you create the runtime from:
Will return the name of the EXE and its full pathname.
Best
Klaus
on Windows do this in the mainstack, the one that you create the runtime from:
Code: Select all
...
put the filename of me into the_long_path_to_this_application
...Best
Klaus
-
mrcoollion
- Posts: 744
- Joined: Thu Sep 11, 2014 1:49 pm
Re: Get application executable name and path of the runtime version
Thanks Klaus,
I used:
Could this have worked also in the standalone?
Regards,
Paul
I used:
Code: Select all
put the effective filename of this stack into tApplicationAndPathRegards,
Paul
-
mrcoollion
- Posts: 744
- Joined: Thu Sep 11, 2014 1:49 pm
Re: Get application executable name and path of the runtime version
Hi Klaus,
Your suggestion throws me the following error : 'card "Main Card": execution error at line n/a (Object: object does not have this property)'
Am i missing something here?
Regards,
Paul
Your suggestion throws me the following error : 'card "Main Card": execution error at line n/a (Object: object does not have this property)'
Am i missing something here?
Regards,
Paul
-
mrcoollion
- Posts: 744
- Joined: Thu Sep 11, 2014 1:49 pm
Re: Get application executable name and path of the runtime version
Instead om me i used . In effect we then have the same command 
Code: Select all
of this stackRe: Get application executable name and path of the runtime version
Yes, in a cardscript ME = the CARD, so "... of this stack" will do.mrcoollion wrote: Wed Feb 08, 2023 2:17 pmYour suggestion throws me the following error : 'card "Main Card": execution error at line n/a (Object: object does not have this property)'
-
mrcoollion
- Posts: 744
- Joined: Thu Sep 11, 2014 1:49 pm
Re: Get application executable name and path of the runtime version
Thanks again Klaus.
