This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Extracting output from Batch file!!!!! Urgent
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 13, 2009
01:54 AM
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
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
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 13, 2009
03:24 AM
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.
please use the path as follows :
szCmd = " >> " + "C:\\test.log";
Hope it should work.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 13, 2009
04:05 AM
I have given doulble lash say you have mentioned
szLogFile = "C:\\abc.log";
szLogFile = "C:\\abc.log";
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)