Path of loaded application

WBaxter

Usenet Archive
Joined
Aug 13, 2003
Messages
3
Reaction score
0
Is there a function in either lisp or vlisp which will report the pathname that a given app was loaded from. In VB6 it is simply 'Path = App.Path'. I want to be able to have external configuration files residing with the program, but with all the ways to load a program, I don't know where to have the program look for the configuration files if they are not in a directory that is specifically on the Autocad search path.

I found the 'FullName Property' on ActiveX - VBA help but is there a way to access that from Lisp or Vlisp?
 
What if it is in a directory not specifically included on the Autocad search path? Like it was loaded with the Load Application dialog using the file-browse technique.
 
We have to wait and see if anyone else replies that the only one I can think of right now.

Murph
 
WBaxter said:
Is there a function in either lisp or vlisp which will report the pathname that a given app was loaded from.

No but there is a function in ObjectARX that wil ldo this for you. Fortunately, it's already been gift-wrapped in DOSLIB.ARX.
 
I found it.

From the DosLib help:

Command: (dos_lisplist t)

("C:\\Program Files\\AutoCAD 2002\\express\\acetutil.fas" "C:\\Program Files\\AutoCAD 2002\\express\\acetauto.LSP" "C:\\Program Files\\AutoCAD 2002\\support\\acettest.fas" "C:\\Program Files\\AutoCAD 2002\\support\\legacy\\dwfout\\dwfout.lsp" "C:\\Program Files\\AutoCAD 2002\\support\\acad2000.FAS" "C:\\Program Files\\AutoCAD 2002\\support\\acad2000doc.FAS" "C:\\Program Files\\AutoCAD 2002\\Support\\acad.mnl" "C:\\Program Files\\AutoCAD 2002\\express\\acetmain.mnl")

I haven't tried it yet but DosLib has never let me down yet.

Thank you

By the way, if anyone is a binary person they will agree that your statement is clever.
 
Luis said:
What? what do you mean? what do you trying to say?

Simply finding a file in a given location with a matching name is no guarantee you've found the file that was actually loaded.
 

Latest threads

Back
Top