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

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -