Sandy
---== Posted via the PFCGuide Web Newsreader ==---
http://www.pfcguide.com/_newsgroups/group_list.asp
[Powerscript]
string ls_Path
unsignedlong lul_handle
ls_Path = space(1024)
lul_handle = Handle(GetApplication())
GetModuleFilenameA(lul_handle, ls_Path, 1024)
MessageBox("Current application path", ls_path)
KISHORE
"Sandy" <NOCANSPAM...@hanys.org> wrote in message
news:4215f8e6$1@forums-1-dub...
Sandy
On 18 Feb 2005 06:26:31 -0800,
in sybase.public.powerbuilder.general
I tried it in my exe, it is working it give full path.
Just send me your exe path.
Kishore
"Sandy" <NOCANSPAM...@hanys.org> wrote in message
news:42160215$1@forums-1-dub...
On 18 Feb 2005 07:07:34 -0800,
On 18 Feb 2005 07:11:29 -0800,
in sybase.public.powerbuilder.general
Good luck,
Terry [TeamSybase] and Sequel the techno-kitten
On 18 Feb 2005 07:14:53 -0800,
*********************************
Click once a day to help the hungry
http://www.thehungersite.com
*********************************
Sequel's Sandbox: http://www.techno-kitten.com
Home of PBL Peeper, a free PowerBuilder Developer's Toolkit.
Version 2.2.06 now available at the Sandbox
See the PB Troubleshooting Guide at the Sandbox
^ ^
o o
=*=
String ls_Path
ULong ll_Handle, &
ll_Length
// Grab the INI file.
ll_Handle = Handle (GetApplication ())
IF ll_Handle = 0 THEN
is_INI = "C:\Documents and Settings\Jason\My Documents\PB\FACT\FACT.ini"
ELSE
ll_Length = 255
ls_Path = Space (ll_Length)
GetModuleFileName (ll_Handle, ls_Path, ll_Length)
is_INI = Left (ls_Path, Len (ls_Path) - 3) + "ini"
END IF
... and my external function is defined as
FUNCTION ULong GetModuleFileName (ULong hinstModule, REF String lpszPath,
ULong cchPath) LIBRARY "kernel32.dll" ALIAS FOR "GetModuleFileNameA"
"Sandy" <NOCANSPAM...@hanys.org> wrote in message
news:4216066d$1@forums-1-dub...