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
Local Administrator
The short answer is No.
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)
Local Administrator
Ah, well that would explain my lack of success. Thanks Iain. Sadness confirmed.
Author: radarhead (bartonm@westinghouse.com)
Local Administrator
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)
Local Administrator
in http://unifaceinfo.com/forum/unifacetechnicalsupport/use-environment-variable-in-files-section-of-assignment-file/ there seems to be a hint:
Author: ulrich-merkel (ulrichmerkel@web.de)