# How to log the scheduled bat file?

**URL:** https://www.finalbuilder.com/forums/t/how-to-log-the-scheduled-bat-file/2041
**Category:** Discussion
**Created:** [October 26, 2012, 6:10am UTC](https://www.finalbuilder.com/forums/t/how-to-log-the-scheduled-bat-file/2041 "2012-10-26T06:10:28Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [October 26, 2012, 6:10am UTC](https://www.finalbuilder.com/forums/t/how-to-log-the-scheduled-bat-file/2041/1 "2012-10-26T06:10:28Z")

</div>

Hi guys,

I scheduled the task which will automatically run the final builder project.

&nbsp;

Batch file code is as follows:

&nbsp;&nbsp;&nbsp;&nbsp;@ECHO OFF

&nbsp;&nbsp;&nbsp;&nbsp;REM RUN SCHEDULED TASK ON \*Machine Name\*

&nbsp;&nbsp;&nbsp;&nbsp;echo Running a daily build on \*Machine Name\*

&nbsp;&nbsp;&nbsp;&nbsp;schtasks /Run /S \*Name\*/TN&nbsp;""

&nbsp;&nbsp;&nbsp;&nbsp;pause

Now, I want to record the daily log file.

Appreciate your time and suggestion in advance. Thx

&nbsp;

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [November 3, 2012, 1:38am UTC](https://www.finalbuilder.com/forums/t/how-to-log-the-scheduled-bat-file/2041/2 "2012-11-03T01:38:15Z")

</div>

I’m not sure I understand exactly what you are trtying to do. FinalBuilder can export the log file during the build, you can use variables to build up a unique log file name to pass to the Export Log File action.
