Re: get save_add folder and open a file by MG_open_url? [message #72529] |
Fri, 17 September 2010 00:33 |
rogass
Messages: 200 Registered: April 2008
|
Senior Member |
|
|
Thank you for the hint. I solved the problem in this way (assuming
that about lays inside !path):
pro about,event
online_help,book=FILE_SEARCH(STRSPLIT(!PATH, PATH_SEP(/SEARCH_PATH),/
EXTRACT) + '/about.{pdf}')
end
Best Regards
CR
|
|
|
Re: get save_add folder and open a file by MG_open_url? [message #72531 is a reply to message #72529] |
Thu, 16 September 2010 23:33  |
Maxwell Peck
Messages: 61 Registered: February 2010
|
Member |
|
|
On Sep 17, 7:26 am, chris <rog...@googlemail.com> wrote:
> Hi,
> I have written some ENVI Routines, which run well within ENVI. Now I'd
> like to give some extra information on the routines by opening a PDF-
> file which is also in the save_addd directory.
> I tried to use Michael Galloy's mg_open_url to open the pdf, but it
> failed. The problem is to give the save_add path to use spawn or
> online_help. The question is, how can I get the current working dir of
> the sav-file which is currently in $main$ status to use spawn or
> online_help with a file in this dir?
>
> Thanks in advance
>
> CR
Not sure how helpful this is for you but ENVI_GET_CONFIGURATION_VALUES
(check the help i can't remember all the syntax) will return the
default save_add directory.
Max
|
|
|