%PsExec_VAR -h \\%0 cmd /c echo 10.0.64.185 some_name.com >> \\%0\c$\Windows\System32\drivers\etc\hostsposts the results in hosts file
10.0.64.185 some_name.com
%PsExec_VAR -h \\%0 cmd /c echo {Enter ip host info:10.0.64.185 some_name.com} >> \\%0\c$\Windows\System32\drivers\etc\hostscauses undesired output quotes:
"10.0.64.185 some_name.com"
Any idea how to avoid those quotes? (Dequote - Remove Quotes from a string)