Determine location of DLC

Posted by jmls on 16-Dec-2011 16:10

on systems where DLC is not defined as an environment variable (normally windows), is there any way from the ABL of determining where DLC is installed ?

This has to be for tty, webspeed and GUI, windows and client.

I was looking for session:DLC or session:install-dir but of course they don't exist. That would be too easy.

Thanks

All Replies

Posted by Thomas Mercer-Hursh on 16-Dec-2011 16:18

The trailing entries on the PROPATH?

Posted by jmls on 16-Dec-2011 16:24

ahhh. Now, I can't use that either.

I use the -baseADE startup parameter to automatically add all .pl in

the folder specified to the propath. I then want to add the standard

.pl files by switching session:base-ade to the progress directory

(tty/gui) which then automatically adds all .pl's in that directory to

the propath

On 16 December 2011 22:18, Thomas Mercer-Hursh

Posted by Admin on 16-Dec-2011 16:30

GET-KEY-VALUE?

Or OE11?

System.Environment:CommandLine

returns the path to the current executable, just remove bin/_progres.exe, bin/prowin32.exe, bin/_proapsv.exe, etc. and you have $DLC

Posted by jmls on 16-Dec-2011 16:34

GET-KEY-VALUE is not supported by "speedscript". Or so it says in the manual

System.Environment:CommandLine is not available in linux

Julian

On 16 December 2011 22:30, Mike Fechner

Posted by Admin on 16-Dec-2011 16:38

System.Environment:CommandLine is not available in linux

But there you can use the DLC from the OS environment variable, or? I understood your question so that you need a solution for Windows.

So you'll need to differentiate based on OPSYS

Posted by jmls on 16-Dec-2011 16:44

true.

Linux isn't a problem. I'm blinded by trying to find a one-size-fits all .

Thanks for removing the blinkers.

Now that 11 is out, I will use the .net version

On 16 December 2011 22:38, Mike Fechner

This thread is closed