How to Redirect the Output from a .cmd or .bat Script [ID 1315249.1]
Modified 29-APR-2011 Type HOWTO Status PUBLISHED
In this Document
Goal
Solution
References
Applies to:
Hyperion Essbase - Version: 11.1.2.1.000 and later [Release: 11.1 and later ]
Generic Windows
Goal
When running a .cmd or .bat script, is it possible to redirect the output that is written in the window? The window opens then closes immediately so any error that may occur cannot be determined.
Solution
When running a .cmd or .bat script, i.e. installTool.cmd, to capture what would be written to the window, you can try using the following command, replacing filename with a name of your choosing:
installTool.cmd -s -d >> filename
For example:
installTool.cmd -s -d >> C:\install.log
No comments:
Post a Comment