absolute path for Acrobat reader


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users absolute path for Acrobat reader
# 1  
Old 10-23-2007
absolute path for Acrobat reader

I would like to get the path of acrobat reader for any unix pc.

right now the path of acrobat reader is hardcoded

BEGIN

if :global.system = 'HP-UX' then
HOST('/opt/Acrobat4/bin/acroread /export/USERGUIDE.pdf');
else
v_path := 'HKEY_CLASSES_ROOT\acrobat\shell\open\command';
v_msg := Win_Api_Environment.Read_Registry(v_path,'',true);
APPID := DDE.APP_BEGIN(v_msg,DDE.App_Mode_NORMAl);

end if;
END;



Like in windows i can code to open acrobat reader whatever the windows with registry

" v_path := 'HKEY_CLASSES_ROOT\acrobat\shell\open\command'; "

is there a way to indicate the same thing for acrobat in unix?

thanks you!
# 2  
Old 10-23-2007
You can:

include the path where the reader resides in you PATH-variable;

create a symbolic link in a directory which is already in the PATH, like /usr/local/bin;

create an alias in the shell to expand a name to the fully qualified pathname

write a wrapper-script, which calls the reader itself and which knows it absolute pathname, then put the wrapper-script in a directory included in PATH.

And some more possibilities. Haven't i got your question right or was that really your problem?

bakunin
# 3  
Old 10-23-2007
thanks for you fast response, i dont have privilege on the machine to create a symbolic link.

I would like to open the acroread whatever the version the admin will upgrade so i dont have the rehardcoded.

can i just code "/acroread /export/USERGUIDE.pdf'" ?
# 4  
Old 10-26-2007
create a shell alias which expands to the fully qualified path.

If this changes it is easy to change the alias accordingly.

bakunin
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question