Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

writing to a text file in batch script

@echo off
echo This is a test> test.txt
echo 123>> test.txt
echo 245.67>> test.txt

rem Or you can use variables:
set a=%RANDOM%
echo %a% > test.txt
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #writing #text #file #batch #script
ADD COMMENT
Topic
Name
7+8 =