create log in Batch file

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
parthi1705
Posts: 4
Joined: 07 May 2013 00:13

create log in Batch file

#1 Post by parthi1705 » 07 May 2013 06:03

How to create log in Batch file.

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: create log in Batch file

#2 Post by foxidrive » 07 May 2013 06:31

Code: Select all

@echo off
set "log=c:\logs\test.log"
>>"%log%" echo test 1, %date% - %time%

Post Reply