Pergunta

Want to overwrite a text or ini file using a batch file with a parameter batch file I'm using for this should be:

@echo %1>text.ini

and after running this cmd:

c:\..\text.bat Hello=60

I only get Hello in my ini file the =60 disappeared.

I also remarked, when i do:

@echo %1%2>text.ini

I get Hello60 in my ini file

but I need the Hello=60, can anyone help me for this? Thanks

Foi útil?

Solução

c:\..\text.bat "Hello=60"

@>text.ini echo %~1
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top