Advertisement‎ > ‎

make an output file with entries.cmd

posted Feb 3, 2011, 3:22 PM by Roberto Felicini
@echo off
setlocal enableDelayedExpansion
echo Keep entering line of text. (Enter empty line to exit)
:back
set nLine=
set /p nLine=Enter line:
if not DEFINED nLine goto :eof
echo %date% %time% !nLine! >> OutputFile.log
goto back
Comments