Get application executable name and path of the runtime version
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 709
- Joined: Thu Sep 11, 2014 1:49 pm
- Location: The Netherlands
Get application executable name and path of the runtime version
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
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
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
-
- Posts: 709
- Joined: Thu Sep 11, 2014 1:49 pm
- Location: The Netherlands
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 tApplicationAndPath
Regards,
Paul
-
- Posts: 709
- Joined: Thu Sep 11, 2014 1:49 pm
- Location: The Netherlands
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
-
- Posts: 709
- Joined: Thu Sep 11, 2014 1:49 pm
- Location: The Netherlands
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 stack
Re: 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)'
-
- Posts: 709
- Joined: Thu Sep 11, 2014 1:49 pm
- Location: The Netherlands
Re: Get application executable name and path of the runtime version
Thanks again Klaus.