Computing.Net > Forums > Windows XP > Output to a log file using bat file

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Output to a log file using bat file

Reply to Message Icon

Name: QuesGal
Date: April 20, 2009 at 07:12:48 Pacific
OS: Windows XP
Subcategory: Software Problems
Comment:

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.



Sponsored Link
Ads by Google

Response Number 1
Name: jefro
Date: April 20, 2009 at 12:44:36 Pacific
Reply:

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


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows XP Forum Home


Sponsored links

Ads by Google


Results for: Output to a log file using bat file

create bat file to purge log file www.computing.net/answers/windows-xp/create-bat-file-to-purge-log-file/179854.html

wirtting user input to a text file www.computing.net/answers/windows-xp/wirtting-user-input-to-a-text-file/178412.html

append time stamp and date to the log files www.computing.net/answers/windows-xp/append-time-stamp-and-date-to-the-log-files-/178611.html