Beginning with ISE Design Suite 12.1, the ISE install no longer sets environment variables globally.
How do I make scripts that were written for previous versions of the tools to setup the environment variables for ISE Design Suite 12.1 to ISE Design Suite 14.x tools using a Windows OS?
You can add a call to the settings(32/64).bat file at the beginning of your script.
To do this, you need to use the "call" command in the batch file.
This will run the settings32.bat script to setup your environment before moving on to the other commands in your batch file.