Search This Blog

Windows batch script: write text to file

@echo off
set output_file=c:\users\user1\documents\1.txt

rem echo without newline
echo|set /p="value1:" > %output_file%
echo 1>> %output_file%

echo value2:2>> %output_file%

No comments:

Post a Comment