[futurebasic] Re: [FB] how to get filename

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : April 2003 : Group Archive : Group : All Groups

From: Keiji Goto <kappalab@...>
Date: Sun, 13 Apr 2003 00:42:39 +0900
Thank you very much. But as I wrote in the
reply to Robert, what I wanted was the name
of package for a running application. I am
sorry I was not specific but I did not
realize it until I read Robert's suggestion.
A package is actually a folder but for users
of the application, it is the name of
application, isn't it? And I would like to
display the name of the package as the very
name of a running application. As long as
I know Process Manager does not provide the
name of package (or does it?). I wonder if
there is a simple way to retrieve it from
Process Info.

H. Gluender wrote:
> If the very application is running and you are able to find its 
> ProcessSerialNumber you may gain the app's FSRef from the Process Manager.
> 
> err = FN GetProcessBundleLocation( psn, fsRef )
> 
> 
> 
> In case you are happy with an STR63 name, then you may also use
> 
> err = FN GetProcessInformation( psn, processInfo )
> 
> that returns the record item: processInfo.processName
> 
> ******************************************************
> 
> HTH