Output to a log file using bat file

April 20, 2009 at 07:12:48
Specs: Windows XP
Hi,

The following is a part of my bat file
c:
cd c:\OracleBI\DAC
dacCmdLine ETLStatus >>%TMP_FL%

echo Checkpoint 4 : YES >>%LG_FL%

COPY %LG_FL%+%TMP_FL% %LG_FL%


I am getting the output from the 'ETLStatus' DAC command into the TMP file. However I am nither getting the next line "CheckPoint 4" nor is my next line working - I need to concatinate the output of TMP file in my LOG file.

Please help - I know its some basic mistake.When I run these lines seperately they seem to work ( On Command prompt)

Thanks,
Kay.


See More: Output to a log file using bat file

Report •


#1
April 20, 2009 at 12:44:36
Change echo to a txt file then copy first + what you want for echo.

"Best Practices", Event viewer, host file, perfmon, antivirus, anti-spyware, Live CD's, backups, are in my top 10


Report •
Related Solutions


Ask Question