Use of Windows Environment Variables within an ASN?

Author: bartonm@westinghouse.com (radarhead)

Hi excellent people, is it possible to use Windows Environment Variables within ASN files? Barbara suggest creating a variable starting with a $ here:http://unifaceinfo.com/forum/unifacetechnicalsupport/use-environment-variable-in-files-section-of-assignment-file/ . However this does not seem to work for me. I have tried the following (disclaimer: this is a made up example, but you will get the point): Windows Environment Variables: $EV = D:\BLAH\BLAH EV = D:\BLAH\BLAH Within the ASN *.frm = %EV%\*.frm *.frm = "%EV%\*.frm" "*.frm = %EV%\*.frm" *.frm = $EV\*.frm *.frm = "$EV\*.frm" "*.frm = $EV\*.frm" *.frm = %$EV%\*.frm *.frm = "%$EV%\*.frm" "*.frm = %$EV%\*.frm" But none of which seem to work. Thanks in advance for any ideas people may have. Regards, Mike.

4 Comments

  1. The short answer is No. Cry It's not possible to use environment variables in an ASN file.    There's been a wishlist item outstanding on this for a bit now. http://unifaceinfo.com/system-environment-variables-in-assignment-file/


    Author: Iain Sharp (i.sharp@pcisystems.co.uk)
  2. Ah, well that would explain my lack of success. Thanks Iain. Sadness confirmed.


    Author: radarhead (bartonm@westinghouse.com)
  3. Hi Iain What about using envornoment variables in shortcut? Assume, that in EV directory there are not only the FRM,APS,... but also INI- and ASN-File %EV%\the_special.asn              ; in this ASN-File, define files with absolute pathes %EV%\the_special.ini                 Now create the following shortcut Target       :  X:\uinface\common\bin\uniface.exe /asn=.\the_special.asn /ini=.\the_special.ini xyz.aps Working dir :  %EV% Ingo


    Author: istiller (i2stiller@gmx.de)
  4. in http://unifaceinfo.com/forum/unifacetechnicalsupport/use-environment-variable-in-files-section-of-assignment-file/ there seems to be a hint:

    To anyone else who sees this problem, the variables need to start whit usys. Variable “usysmyfrm” in any ini file or as a windows (probably also linux) environment variable can be used in the [FILES] section of Assignment file by using “*.frm = usysmyfrm:\*.frm”.

    Author: ulrich-merkel (ulrichmerkel@web.de)