Home SQL PHP HTML Perl PowerBuilder C/C++ General Solutions Contacts

PowerBuilder

Index

Tips

Datawindow Timer
Executable Name
Include Objects
Is Executable?
Object Exists?

Objects

Downloads

Get Executable Path and Name

Purpose

To get the executable name and path for the current application

How To Use

I personally usually call this call in a custom application object which gets created when the application starts up. It may, however, be called virtually anywhere either as a global function or object function.

Code

Please note that the following external function call must be defined for the function to work.

External Function Definition
Function

of_GetAppPath( ref string as_AppFilePath, ref string as_AppFileName ) returns integer

Note

Please note that if you're dealing in particularly long path and filenames you may wish to increase the value of lul_Length, which stores the maximum length of the path returned (including the filename).

Details

Author:     Wayne Jones
Created:    22 April 2003
Works with: Windows 3.x/9x/NT/2000/XP only, All PB versions
This is Code, all contents copyright - © Wayne Jones 2004.