cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
girishkatti123
Level 7

Extracting output from Batch file!!!!! Urgent

Hi
I have a batch file which I am executing in the OnFirstAfterUI function. I have create a log file and i wil try to get the output of the batch in the log file.
When I execute the batch file using LauchAppAndWait command the batch file gets executed but the output is not getting appended in the log file.
Or anyone could provide me with the code

Here i the command
szApplicationPath = "C:\\CreateDB.bat";
LongPathToQuote(szApplicationPath,TRUE);
szCmd = " >> " + "C:\test.log";
nResult = LaunchAppAndWait(szApplicationPath,szCmd,LAAW_OPTION_WAIT);

could anyone help

Thanks & Regards
Girish Katti
Labels (1)
0 Kudos
(2) Replies
ChandanOmkar
Level 8

i think its not working because you haven't put the double slash in your log file path.

please use the path as follows :

szCmd = " >> " + "C:\\test.log";

Hope it should work.
0 Kudos
girishkatti123
Level 7

I have given doulble lash say you have mentioned

szLogFile = "C:\\abc.log";
0 Kudos