I'm using a batch file to create an RDP file using various variables to populate the contents.

Every line uses an Echo command and then outputs to a file with >>
For instance -

```
@echo screen mode id:i:1>> "C:\TEMP\file.RDP"
@echo use multimon:i:1>> "C:\TEMP\file.RDP"

```

Whilst this works for every line, one single line is giving me a problem and will not output -

```
@echo selectedmonitors:s:2,0>> "C:\TEMP\file.RDP"

```

For some reason, this line actually outputs *selectedmonitors:s:2,* (the 0 disappears) to the command window and outputs nothing into the .RDP file.
Whilst @echo selectedmonitors:s:2,0 works in the command window and outputs as expected, I can't output to a file.
What's going wrong here?