Very basic, or so I thought. I've got this string in a command prompt:
C:\>echo "start C:\Users\%USERNAME%\My Documents" >> Test.txt
I've tried %%USERNAME%%, '%USERNAME%', '%'USERNAME'%', and many other ways. The batch output always resolves the environmental variable rather than writing it as a literal string of text. Is it possible to make sure it reads this as a literal string of text and not the environment variable it resolves to?