Link to home
Create AccountLog in
Avatar of dscits
dscits

asked on

Can't echo multiple text lines to file

I'm trying to create a file through the use of echo from a batch file.  Its just a config file to set up a custom resolution, input earlier in the batch file.

There is one variable in the echo text, but the rest is static:


ECHO setGameDisplayMode  %RES%>Video.con
ECHO setDetailTexture 5>>Video.con
ECHO setShadows 1>>Video.con
ECHO setEnvironmentMapping 1>>Video.con
ECHO setGraphicsQuality 3>>Video.con
ECHO setLightmaps 1>>Video.con
ECHO setRenderWhenSpawnMenu 1>>Video.con
ECHO setMenuViewdistance 100>>Video.con
ECHO setEffectsQuality 3>>Video.con
ECHO setPerformance 0>>Video.con

Open in new window


However when I run this, this is the file output:

game.setGameDisplayMode 1280 720 32 60 
game.setShadows 
game.setEnvironmentMapping 
game.setLightmaps 
game.setRenderWhenSpawnMenu 
game.setMenuViewdistance 100

Open in new window


as you can see the selected resolution comes through fine, but bits and pieces are missing.  Most of the number values are gone, and a few whole lines are missing too.

I can't figure out why some lines would echo out but some won't.
ASKER CERTIFIED SOLUTION
Avatar of Medianoche
Medianoche

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
SOLUTION
Avatar of Lee W, MVP
Lee W, MVP
Flag of United States of America image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of dscits
dscits

ASKER

Thanks guys for the quick and detailed explanation!  That fixed it.