Bouayed
Bouayed

Reputation: 33

Overwrite .INI file using batch file with parameter containing equal sign

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

Upvotes: 3

Views: 269

Answers (1)

Endoro
Endoro

Reputation: 37589

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

@>text.ini echo %~1

Upvotes: 4

Related Questions