Question : No output from an echo

this script only creates 1 line of text in the output file

set dbname=test
set filename=test.txt
echo test>%filename%
echo 'parameter=test_%dbname%\%F;>>%filename%

i was expecting 2

I can't figure out where the error is.

the code actually works when typed in the command line
but not when run as a batch

Any guidance would be appreciated

Answer : No output from an echo

If you want the text %F in the answer then use %%F instead as the extra % will escape the % to allow it through...
You can also echo multiple lines like this if there are more it is more readable sometimes:

(echo test
echo 'parameter=test_%dbname%\%%F;
Random Solutions  
programming4us programming4us