Batch writing variables to file not working -


i'm new batch , have code:

@echo off set var1 = line1 set var2 = line2 echo %var1% >output.txt echo %var2% >output.txt 

i found on google can use > send output text file. when @ text file file says line2. can 1 help.

echo whatever > file.txt overwrite file , place new content in it

echo whatever >> file.txt append file


Comments

Popular posts from this blog

css - I want to align grid in center -

Contact Form PHP Email Script -

python - SWIG function not printing output -