I am trying to make a batch file that will write other files.
This is my file:
@echo off
set x=100
echo %x% >> output.txt
What this does is create a text file called "output.txt".
In this file it will display "100"
This is not what I want it to, I want the file to contain "%x%" literally.
The reason I am trying to do this is because I would like a batch file to create other complex batch files.
I could use copy or move to move another file containing what I want, but I need this to be a single file.
I would really appreciate some help, but it is understandably really difficult to understand.
Thanks Jason