Link to home
Start Free TrialLog in
Avatar of zephyr_hex (Megan)
zephyr_hex (Megan)Flag for United States of America

asked on

Batch file to add line to hosts file

i want to add a line to the hosts file.  i'm used to unix programming, and not batch files...
how do i add a line to a file using a batch file?
SOLUTION
Avatar of wnross
wnross

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
wnross,
Be aware that he windows version of echo is stupid enough to copy the quote characters to the output stream, so you would end up with the quotes in the hosts file.
Avatar of wnross
wnross

Heh, fair enough

Cheers
-Bill
Avatar of zephyr_hex (Megan)

ASKER

thanks