I'm really no windows expert.
On Unix systems you need to execute an environment
file in the actual shell in order to set this environment
in the current shell, for example:
#!/bin/ksh
/home/informix/.profile
dbaccess stores7 select.sql
This would not work because '/home/informix/.profile' will be executed in a sub-shell, thus the current shell would not get
the actual environment. The right way would be:
#!/bin/ksh
. /home/informix/.profile
dbaccess stores7 select.sql
The leading point (". /home/informix/.profile") ensures that this
file is executed in the current shell, thus the environment
variables are available for the 'dbaccess' call.
I don't know if this is the same in NT. You might echo the
INFORMIXDIR and PATH environment variable after calling
your 'setenv' batch file in order to see if the environment
has been correctly set.