Hello Listers,

not sure if this already reached the list...

Thanks in advance for any help.

Mario


-----Ursprüngliche Nachricht-----
Von: Mario Roehr [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 10. September 2008 16:26
An: [EMAIL PROTECTED]
Cc: Mario Roehr
Betreff: Using Environment Variable in Run Process


Hello Listers,

we are on a german/english mixed windows environment.
The german windows clients have an environment variable _Programfiles_ set 
to C:\Programme
The english windows clients have the same variable set to C:\Program Files

Now we have the problem to run an external program on the clients via run 
process in an Active Link.

That worked fine when all clients were german windows clients.

We created a Config Form where the path to the external program 
(C:\Programme) is stored in a text field $External Program Path$

Now since we are on english windows clients as well as german this doesn't 
work anymore for the english clients (because the default Program File path 
is C:\Program Files for the english ones).

Now we would like to store the environment variable in this field $External 
Program Path$ on the Config Form, so we entered the value %Programfiles%.

Our Run Process command line in the Active Link looks like this: $External
Program Path$\myProgram.exe

But we alway get the error message 'The system could not find the file 
specified'.

How to pass the value from $External Program Path$ to the AL and how should 
this string (in the field $External Program Path$) look like?

Thanks for any help in advance.

Mario

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are"

Reply via email to