Maybe a crazy idea or a "challenge" - please don't invest too much time in it ...
----
EDIT:
neither "crazy" nor "challenge" - "read" is the solution
----
At the moment, I set paths inside Lisp:
setq mainpath "d:\\cad\\test\\"
lisppath (strcat systempfad="Lisp_Dbx_Arx\\")
Now I have to migrate these settings to an ini-file and to read it with "dos_getini".
Here is the current state-of-the-art - INI-file:
[Paths]
mainpath=d:\cad\test\
lisppath=d:\cad\test\Lisp_Dbx_Arx\
Of course an INI is "hardcoded" - when I change the mainpath all other paths have to be changed too. And of course that's not a real problem - search and replace with editor. Or use for the "strcat" inside lisp to concatenate the info.
But - how about writing the lisp-commands to the INI and read and use them:
[Paths]
mainpath=d:\cad\test\
lisppath=(strcat mainpath "\\Lisp_Dbx_Arx\")
It's no problem to read the values, but of course the result is a string. So the main question is:
How to use a string as command?
Thanks and regards