/build/static/layout/Breadcrumb_cap_w.png

Batch file calling through Wise Script Issue

Hi,

I have a very peculiar issue.

I am trying to run a batch file from wise script.
I used Execute Program

remarked item: Execute Program
Pathname=C:\Hyperion\BIPlus\install\bin\HRRunAnt.cmd
Command Line=>"%WIN%\Software\Logs\originalHyperian_Reporting_Analysis_HRRunAnt.txt"
Flags=00000010
end
The batch script contains %HYPERION_HOME% as environment variable and having value as C:\HYPERION
Batch Script:
for /D %%a in ("%HYPERION_HOME%") do set HYPERION_HOME=%%~fsa
set HYPERION_JRE=%HYPERION_HOME%\common\JRE\Sun\1.5.0
set HYPERION_ANT=%HYPERION_HOME%\common\utilities\Ant\1.6.0



The issue is
Sometimes the environment variable %HYPERION_HOME% is getting resolved to "c:\Hyperion" and sometimes not
the environment variable %HYPERION_HOME% is getting resolved to null i.e. " "
as a result we were not able to install the application.
We are deploying through Altiris
Please let us know how to resolve the issue

0 Comments   [ + ] Show comments

Answers (0)

Be the first to answer this question

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ