hi Folks,
I am trying to redirect standalone exe output to txt file , I am following below command but it is not working. command execution itself failing. If I don't redirect it is working.Mostly this exe is written in C++. can some help me to make it work.
configDirPath = INSTALLDIR ^ "API\\config";
LongPathToQuote(configDirPath,TRUE);
szexePath = INSTALLDIR ^ "CLI\\bin";
szAppPath = szexePath ^ "cfg.exe";
LongPathToQuote(szAppPath,TRUE);
svHostnameLowerCase = "Hostname";
nRes = LaunchAppAndWait ( szAppPath, "-node -password " + svHostnameLowerCase + " > " + configDirPath ^ "resetssvop.log", LAAW_OPTION_WAIT | LAAW_OPTION_HIDDEN );
nReturnCode = NULL;
nReturnCode = LAAW_PARAMETERS.nLaunchResult;
if ( nReturnCode != 0 )then
MessageBox("Fail", INFORMATION);
else
MessageBox("SUCCESS", INFORMATION);
endif;