Question

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

Was it helpful?

Solution

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

@>text.ini echo %~1
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top